Hello,
i have a problem with the ThreePhaseButtonMorph. I want to realize 3 radioButton to chose a degree of difficulty. I one button is chosen, no other should be "state: #pressed". I'm quiet new @ squeak and i realy don't know whats necessary to be pasted here.
Has anybody a good tutorial how to use those RadioButton's in a way like i can use them in visual studio.
Thanks for any suggestion
Andreas
Hello Andreas,
AB> Has anybody a good tutorial how to use those RadioButton's in AB> a way like i can use them in visual studio.
Sorry I'm in a hurry and I've forgotten how I found out how to do it.
I Assume you're German so you will understand the german names in the code. Otherwise tell me.
This is what I do to get Radio Buttons:
This creates the Morph, see attached Picture.
buildZeitraumSelektor "Display RadioButtonGroupMorph erzeugen, einklinken" zeitraumSelektor := RadioButtonGroupMorph new initializeWithValues: {#Tag. #Woche. #Monat. #Quartal. #Jahr}. zeitraumSelektor target: auswertungsApp; getSelector: #auswertungsZeitraum; setSelector: #auswertungsZeitraum:; color: Color veryVeryLightGray; beSticky; extent: 95 @ 130. zeitraumSelektor openInWorld. zeitraumSelektor position: 215 @ (World extent y -150).
The target implements the two selectors #auswertungsZeitraum and #auswertungsZeitraum:
The first one only returns a Symbol like #Monat, I guess that activates the proper Button.
The setter does the necessary actions like in:
auswertungsZeitraum: anObject daten autoIrrelevantGrenze ; auswertungsZeitraum: anObject. self collectEvaluateDisplay. userInterface highlightDayPicker .
Hope this helps a bit!
Cheers,
Herbert mailto:herbertkoenig@gmx.net
beginners@lists.squeakfoundation.org