![View this Page](/schemes/poor/viewie.gif)
![Edit this Page](/schemes/poor/edit.gif)
![Attachments to this Page](/schemes/poor/upload.gif)
![History of this Page](/schemes/poor/history.gif)
![Home](/schemes/poor/top.gif)
![Recent Changes](/schemes/poor/recent.gif)
![Search the Swiki](/schemes/poor/search.gif)
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