Computing.Net > Forums > Programming > C++ Dialog controls

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C++ Dialog controls

Reply to Message Icon

Name: Kapp
Date: April 27, 2002 at 05:22:15 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Jeff
Date: April 29, 2002 at 17:20:23 Pacific
Reply:

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.


0
Reply to Message Icon

Related Posts

See More


Apache 2.0-PHP 4.2 ISAPI-... Musicmatch jukebox



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ Dialog controls

Visual C++, Dialog Controls www.computing.net/answers/programming/visual-c-dialog-controls/1612.html

common dialog control www.computing.net/answers/programming/common-dialog-control/1679.html

Visual C++ / MFC / Controls / Edit www.computing.net/answers/programming/visual-c-mfc-controls-edit-/9689.html