190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
# File 'lib/weft/wxgui/controls/textcontrols.rb', line 190
def start_find(parent_win)
if not @f_dialog
@f_dialog = Wx::FindReplaceDialog.new( parent_win, @f_data,
"Find text", Wx::FR_NOWHOLEWORD )
end
if not @hooked
parent_win.evt_find(-1) { | e | on_find(e) }
parent_win.evt_find_next(-1) { | e | on_find(e) }
parent_win.evt_find_close(-1) { | e | on_find_close(e) }
parent_win.evt_close() { | e | on_find_close(e) }
@hooked = parent_win
end
@f_dialog.show()
end
|