Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a dialog with an options button and a run button on it. When the options button is pushed, another dialog is displayed with radio buttons on it. How can I use the selections made on the options dialog to display a message box that shows what radio buttons were clicked when the run button is pressed on the first dialog. I am finding this difficult because when the options Dlg is closed it clears the selections. How can I do this.

Several ways, but one is to have the options dialog save the states of its radio buttons, before it closes, so the dialog that spawned it can see them.
I'll assume your "dialogs" are plain windows, as I don't know what GUI library you're using, but you could fit this to true dialogs. Again, many possibilities, but you could have the options dialog call SendMessage with BM_GETSTATE, to query each radio button's state (or however you handle such things), and save the states in booleans or a bitfield, before it dies. Those bools (or bitfield), will need to be accessible by the parent dialog, so it can know what selections were made.
That's the idea, anyway. Specifics are hard without knowing your programming library.

![]() |
Apache 2.0-PHP 4.2 ISAPI-...
|
Musicmatch jukebox
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |