Spurious event

BlitzMax Forums/Brucey's Modules/Spurious event

Nigel Brown(Posted 2008) [#1]
Brucey,

Just doing some checking on my app and on one of the panels I have 4 radio buttons they are not grouped because of the windows2000 problem with doing this. I have an event handler for each of the buttons. When you click on the panel the very first time it is displayed it generates an event for the first radio button. But only ever the first time it is displayed?

Can supply the source but its BIG now.


Nigel Brown(Posted 2008) [#2]
So in conclusion, the first of a set of non grouped radiobuttons is selected by (something, windows is my guess) when it is not set before it is added to a sizer. if you create the buttons in the order of, first button created is to be set. Then add them to the sizer in the order they are to be displayed in.

i.e.

create 2134
add to sizer 1234
radiobutton2 will be set under windows weather you set it or not. If you do set it then no event to set it will be generated. phewww!!!