TRadioButtons get selected #206
Replies: 1 comment
-
|
Firstly, you need to keep a pointer to the ushort selectedItemNum;
radioButtons->getData(&selectedItemNum);
// 'selectedItemNum' is now either the selected item number or 0 if no item is selected.Otherwise, you can check whether a specific item is selected using the if (radioButtons->mark(1))
{
// First item selected...
}
else if (radioButtons->mark(2))
{
// Second item selected...
}Turbo Vision was originally designed so that you could call tvision/examples/tvdemo/tvdemo3.cpp Lines 51 to 59 in 85aaeca The But I strongly advise against doing that because it is very easy to mess up and run into memory safety issues. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am adding a radio button to the dialog:
once dialog is executed, how do i obtain the radio ithem checked?
Beta Was this translation helpful? Give feedback.
All reactions