I am writing a dxl that launches a dialog box which has multiple fields/tabs etc. . |
Re: How to detect radial button selection after launching DB ? You can assign a "callback" function to most DBEs that fires when the value in the DBE changes. For radioBoxes its straight forward:
string sOptions[] = {"Option0", "Option1", "Option2"}
DB dbBox
DBE dbeRadio
void clbkMyRadio(DBE dbeXX)
{
int iSelected = get(dbeRadio)
if (iSelected < 0) //
then infoBox("Nothing is now selected")
else infoBox("You just selected " iSelected " " sOptions[iSelected] "")
}
dbBox = create("callback test")
dbeRadio = radioBox(dbBox, "Options", sOptions, 0)
set(dbeRadio, clbkMyRadio) // Assign the callback
show(dbBox)
|