diff dynamin/gui/radio_button.d @ 55:c138461bf845

Add focusing and other changes that are related like descendantAdded/Removed events, Window.activated event, and updating List. Window.state was also added, even though focusing does not depend on it.
author Jordan Miner <jminer7@gmail.com>
date Sat, 08 Aug 2009 15:42:27 -0500
parents 6e33b00595e9
children 7c5c50a06ffe
line wrap: on
line diff
--- a/dynamin/gui/radio_button.d	Sat Aug 08 15:31:24 2009 -0500
+++ b/dynamin/gui/radio_button.d	Sat Aug 08 15:42:27 2009 -0500
@@ -98,6 +98,7 @@
 	}
 public:
 	this() {
+		_focusable = false;
 	}
 	this(string text) {
 		this();
@@ -106,6 +107,11 @@
 	override Size bestSize() {
 		return Size(70, 15);
 	}
+	alias CheckBox.checked checked;
+	override void checked(bool b) {
+		focusable = b;
+		super.checked(b);
+	}
 	/**
 	 * Gets or sets what group this radio button is a part of. The default is 1.
 	 */