comparison dynamin/gui/text_box.d @ 78:651082a9b364

Add Event.setUp() and use in place of mainHandler and dispatcher.
author Jordan Miner <jminer7@gmail.com>
date Sat, 06 Feb 2010 15:12:52 -0600
parents ccc108b25a0a
children 73060bc3f004
comparison
equal deleted inserted replaced
77:c9a4850926d9 78:651082a9b364
111 protected void whenSelectionChanged(EventArgs e) { } 111 protected void whenSelectionChanged(EventArgs e) { }
112 /// This event occurs after the selection has changed. 112 /// This event occurs after the selection has changed.
113 Event!(whenSelectionChanged) selectionChanged; 113 Event!(whenSelectionChanged) selectionChanged;
114 114
115 this() { 115 this() {
116 selectionChanged.mainHandler = &whenSelectionChanged; 116 selectionChanged.setUp(&whenSelectionChanged);
117 117
118 super(); 118 super();
119 _focusable = true; 119 _focusable = true;
120 content.cursor = Cursor.Text; 120 content.cursor = Cursor.Text;
121 121