






PluggableButtonMorph
Selectors/aspects: state and action
	-	Am I on or off?
	-	Here's what you should do when I get clicked.
Example: Browser buildMorphicSwitches
	...
	instanceSwitch := PluggableButtonMorph
		on: self
		getState: #instanceMessagesIndicated
		action: #indicateInstanceMessages.
	instanceSwitch
		label: 'instance';
		askBeforeChanging: true;
		borderWidth: 0.
	...
        Changes propagation:
        self changed: #instanceMessagesIndicated
Další příklady viz http://minnow.cc.gatech.edu/squeak/2962
Link to this Page
- FAQ last edited on 15 February 2006 at 11:28 am by libuse.fit.vutbr.cz