Re: radio button question
- Posted by gwalters at sc.rr.com Mar 15, 2002
- 365 views
Yes, Al it actually is a radio button. Here's the statement id = create(Button,EUmenu[i][j][1],subMenuId[i], col,row,lenRow,20,BS_AUTORADIOBUTTON) The MS doc says that BS_NOTIFY for the button should notify the parent window if it's clicked. I couldn't seem figure out how to get that to happen. The reason I wanted the BS_NOTIFY to work is that there are about 12 windows each having 20 to 30 buttons. george ----- Original Message ----- From: "Al Gonzalez" <alg at nomscon.com> To: "EUforum" <EUforum at topica.com> Subject: Re: radio button question I'm assuming you are using Win32lib.ew. Wouldn't you just register the onClick event of the button to call the handler for the window. onClick[id]=routine_id("mainWindow_onClick") you would then use the getSelf() to determine what id called mainWindow_onClick. BTW change mainWindow to the name of your window. Also, shouldn't Button in your example be Radio? Al > >Does anyone know how to get a click on a radio button to notify the parent >window? BS_NOTIFY combined in the arguments on create don't seem to do it > > id = create(Button,EUmenu[i][j][1],subMenuId[i], > col,row,lenRow,20,{BS_AUTORADIOBUTTON,BS_NOTIFY}) > >If I try this the buttons disappear. > >george >