comparison dynamin/gui/text_box.d @ 8:b621b528823d

whenXX methods have to come before the event if switched to template mixins.
author Jordan Miner <jminer7@gmail.com>
date Wed, 15 Jul 2009 14:04:55 -0500
parents aa4efef0f0b1
children ccc108b25a0a
comparison
equal deleted inserted replaced
7:1311fae1ca9b 8:b621b528823d
105 // TODO: columns and rows 105 // TODO: columns and rows
106 return Size(100, 20); 106 return Size(100, 20);
107 } 107 }
108 override int baseline() { return 14; } 108 override int baseline() { return 14; }
109 109
110 /// Override this method in a subclass to handle the SelectionChanged event.
111 protected void whenSelectionChanged(EventArgs e) { }
110 /// This event occurs after the selection has changed. 112 /// This event occurs after the selection has changed.
111 Event!() SelectionChanged; 113 Event!() SelectionChanged;
112 /// Override this method in a subclass to handle the SelectionChanged event.
113 protected void whenSelectionChanged(EventArgs e) { }
114 114
115 this() { 115 this() {
116 SelectionChanged = new Event!()(&whenSelectionChanged); 116 SelectionChanged = new Event!()(&whenSelectionChanged);
117 117
118 super(); 118 super();