

I have added 4 new buttons to the UI that you can use similarly to the way you use radio buttons; by creating a UINT and enum{}. The buttons labeled SW1-SW4 are on-off (2-state) types. If you right click on one of the buttons to set it up you will see a similar dialog as the radio-button setup. You provide a UINT variable to connect the button to your code. The enum is hard-coded and can not be changed. The values are {SWITCH_OFF, SWITCH_ON} and the default is the first one OFF. Because these correspond to {0,1} you can use them easily. For example, if you wanted a MUTE button, you could set up one of the 2-state buttons like this:
Control Name: MUTE
variable: m_uMute
Then in your code, you can test the button state:
if(m_uMute)
{
// do mute processing...
}
Most Users Ever Online: 152
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chaes: 56
Skyler: 48
StevieD: 46
Derek: 46
Frodson: 45
Peter: 43
TheSmile: 43
Nickolai: 43
clau_ste: 39
jeanlecode: 37
Member Stats:
Guest Posters: 1
Members: 768
Moderators: 1
Admins: 6
Forum Stats:
Groups: 13
Forums: 42
Topics: 842
Posts: 3347
Moderators: W Pirkle: 689