Reply To: ….v….1….v….2….v….3….v….4….v….50…v….6

Product Compare Forums General Test Me ….v….1….v….2….v….3….v….4….v….50…v….6 Reply To: ….v….1….v….2….v….3….v….4….v….50…v….6

#6139
deleyd
Participant

[code:13onr6zk]void MyRadiobtnDlg3()
{
int Dlg, Result;
int option1, option2, option3;

DlgCreate( Dlg );

DlgAddCtrl( Dlg, Dlg_GroupBox, "Options",
1, 1, //coordinates X, Y
25, 4, //Width, Height
-1, 0, "" );

DlgAddCtrl( Dlg, Dlg_RadioButton, ‘One’,
2, 2, //coordinates X, Y
23, 1, //Width, Height
1201, 0, "" );
DlgSetInt (dlg, 1201, 1); //Select option to start with

DlgAddCtrl( Dlg, Dlg_RadioButton, ‘Two’,
2, 3, //coordinates X, Y
23, 1, //Width, Height
1202, 0, "" );

DlgAddCtrl( Dlg, Dlg_RadioButton, ‘Three’,
2, 4, //coordinates X, Y
23, 1, //Width, Height
1203, 0, "" );

Result = DlgExecute( Dlg, 1, "Radio Buttons",
"",
"",
0 );

option1 = DlgGetInt( Dlg, 1201);
option2 = DlgGetInt( Dlg, 1202);
option3 = DlgGetInt( Dlg, 1203);

MAKE_MESSAGE("Option1="+str(option1)+" Option2="+str(option2)+" Option3="+str(option3));

DlgKill( Dlg );
}
....v....1....v....2....v....3....v....4....v....50...v....6....v... 7..
Use Right Margin=62[/code:13onr6zk]