Autonomous OptionGadgets
Posted: Wed Sep 15, 2004 8:32 pm
I use the following to create an array of 16 Option Gadgets.
Later I fill in the text for each button (a serial number) so the user can switch a graphical plot on or off.
My problem is that because I create all the Option Gadgets in one operation they become a group, with exclusive properties. The good book says I can stop this by creating other gadgets in between each option gadget. Apart from being very untidy, I only have a few other gadgets so this is not practical
Question: How can I break the grouping effect ?
Code: Select all
For y.w = 0 To 3
xw.w = px.w+10
For x.w = 0 To 3
OptionGadget(id.w, xw.w,yw.w, 115, 15, "")
SetGadgetFont(id.w,cFont.l)
; Set colour here... HOW?
xw.w+120
id.w+1
Debug id.w
Next
yw.w+20
Next
My problem is that because I create all the Option Gadgets in one operation they become a group, with exclusive properties. The good book says I can stop this by creating other gadgets in between each option gadget. Apart from being very untidy, I only have a few other gadgets so this is not practical
Question: How can I break the grouping effect ?