Mercurial > projects > dynamin
comparison dynamin/gui/check_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 | 6580fabb7dce |
children | 73060bc3f004 |
comparison
equal
deleted
inserted
replaced
77:c9a4850926d9 | 78:651082a9b364 |
---|---|
61 /// Override this method in a subclass to handle the checkedChanged event. | 61 /// Override this method in a subclass to handle the checkedChanged event. |
62 protected void whenCheckedChanged(EventArgs e) { } | 62 protected void whenCheckedChanged(EventArgs e) { } |
63 /// This event occurs after . | 63 /// This event occurs after . |
64 Event!(whenCheckedChanged) checkedChanged; | 64 Event!(whenCheckedChanged) checkedChanged; |
65 this() { | 65 this() { |
66 checkedChanged.mainHandler = &whenCheckedChanged; | 66 checkedChanged.setUp(&whenCheckedChanged); |
67 _focusable = true; | 67 _focusable = true; |
68 } | 68 } |
69 this(string text) { | 69 this(string text) { |
70 this(); | 70 this(); |
71 this.text = text; | 71 this.text = text; |