Mercurial > projects > dynamin
diff 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 |
line wrap: on
line diff
--- a/dynamin/gui/text_box.d Wed Jul 15 13:59:16 2009 -0500 +++ b/dynamin/gui/text_box.d Wed Jul 15 14:04:55 2009 -0500 @@ -107,10 +107,10 @@ } override int baseline() { return 14; } + /// Override this method in a subclass to handle the SelectionChanged event. + protected void whenSelectionChanged(EventArgs e) { } /// This event occurs after the selection has changed. Event!() SelectionChanged; - /// Override this method in a subclass to handle the SelectionChanged event. - protected void whenSelectionChanged(EventArgs e) { } this() { SelectionChanged = new Event!()(&whenSelectionChanged);