diff dynamin/gui/scroll_bar.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/scroll_bar.d	Wed Jul 15 13:59:16 2009 -0500
+++ b/dynamin/gui/scroll_bar.d	Wed Jul 15 14:04:55 2009 -0500
@@ -163,10 +163,10 @@
 		               [buttonSz, track1Sz, thumbSz, track2Sz, buttonSz]);
 	}
 public:
+	/// Override this method in a subclass to handle the ValueChanged event.
+	protected void whenValueChanged(EventArgs e) { }
 	/// This event occurs after Value has been changed.
 	Event!() valueChanged;
-	/// Override this method in a subclass to handle the ValueChanged event.
-	protected void whenValueChanged(EventArgs e) { }
 
 	override Size bestSize() {
 		if(cast(VScrollBar)this)