logo       

Re: RadioButton's: msg#00287

lang.smalltalk.squeak.beginners

Subject: Re: RadioButton's

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@xxxxxxx

Attachment: RadioButtonGroup.gif
Description: GIF image

_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise