Changeset 29077 for lang/ruby/ruwin/lib/ruwin/edit_field/rich.rb
- Timestamp:
- 01/26/09 18:54:12 (4 years ago)
- Files:
-
- 1 modified
-
lang/ruby/ruwin/lib/ruwin/edit_field/rich.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ruwin/lib/ruwin/edit_field/rich.rb
r29072 r29077 34 34 super 35 35 36 sendMessage EM_SETEVENTMASK, 0, ENM_KEYEVENTS 36 sendMessage EM_SETEVENTMASK, 0, ENM_KEYEVENTS|ENM_LINK 37 37 38 38 self.background_color = @proparty[:background_color] if @proparty[:background_color] … … 59 59 end 60 60 61 62 def wm_notify msg, hwndFrom, idFrom, code 63 case code 64 when EN_MSGFILTER 65 en_msgfilter msg 61 notifies = { 62 :EN_MSGFILTER => :en_msgfilter, 63 :EN_LINK => :en_link, 64 }.map{|command, event| "when #{command}; #{event} msg;" }.join 65 class_eval <<-"END" 66 def wm_notify msg, hwndFrom, idFrom, code 67 case code 68 #{notifies} 69 else 70 super 71 end 66 72 end 67 end73 END 68 74 69 75 def en_msgfilter msg … … 75 81 end 76 82 83 def en_link msg 84 nmhdr1, nmhdr2, nmhdr2, msg, wParam, lParam, first, last = *SWin::Application.cstruct2array(msg.lParam, "UUUUUUUU") 85 case msg 86 when WM_LBUTTONDOWN 87 [:link_lmousedown, first, last] 88 end 89 end 90 77 91 class Multiline < Rich 78 92 STYLE = EditField::Multiline::STYLE
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)