ramyaniv
asked on
clear the window
How do I clear the window or delete a strings I printed using "TextOut" function in Windows ?
Is there a shortcut for radio buttons to uncheck ther rest when you check one, apart from jast call a message with all (say in a loop) ? (I have about 20 groups of 5 radio buttons each and in the "case" of "winproc" it's to clumsy)
Is there a shortcut for radio buttons to uncheck ther rest when you check one, apart from jast call a message with all (say in a loop) ? (I have about 20 groups of 5 radio buttons each and in the "case" of "winproc" it's to clumsy)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In addition to Dan's post: make sure that all radio buttons in a group have consecutive resource identifiers, i.e. a group's buttons must not be interleaved with another group's. Bare in mind that having the system take care of radio button groups comes at a price: If you decide to add another button to a group you have to delete all buttons and recreate them (copy-paste makes it easier, but it's still a mess). Alternatively you could edit the resource.h file, which I strongly discourage as inconsistencies can result from this.
.f
.f
Excellent point fl0yd.
In the VC++ Dialog Editor, there is an easier method to re-order the radio buttons: Use the Tab Order command from the Layout menu, then click each of the radio buttons one at a time. The little number displayed next to each control is its "tab order" and that corresponds to the physical order of the control in the resource. The dialog editor actually moves them around in the .RC file.
-- Dan
In the VC++ Dialog Editor, there is an easier method to re-order the radio buttons: Use the Tab Order command from the Layout menu, then click each of the radio buttons one at a time. The little number displayed next to each control is its "tab order" and that corresponds to the physical order of the control in the resource. The dialog editor actually moves them around in the .RC file.
-- Dan
1) When you create the radio buttons in the dialog editor, make sure that the 'Auto' option is checked. This makes it an AUTORADIOBUTTON (sets ths sets the BS_AUTORADIOBUTTON style).
2) Radio buttons are always is sets or groups. Use the properties box to look at each radio button. For the first radio button in a set, place a check in the Group checkbox (set the WS_GROUP style) also, set the Tab Stop option (WS_TABSTOP). For all of the others in a set, clear both of these options
After you have done that, then when the user selects any radio button in a set, then that one will be set and all of the others in the group will be cleared.
-- Dan