Hello,
I need to setup an OptionGroup to a predefined value in a dialogbox. But I don't know how to do that.
For instance based on a condition, I want to setup OptionGroup .MainScreen to option 0 or 1 or etc...
Could you help me ?
Begin Dialog dlgHouseSample 254, 151, 323, 171, "GSS User Interface"
ButtonGroup .ButtonPressed
OkButton 260, 8, 50, 14
CancelButton 260, 29, 50, 14
PushButton 260, 49, 50, 14, "&R"+CHR$(233)+"initialiser", .btnReset
OptionGroup .MainScreen
OptionButton 7, 10, 25, 10, "MI", .OpMI
OptionButton 7, 30, 25, 10, "SK", .OpSK
OptionButton 7, 50, 25, 10, "AR", .OpAR
OptionButton 7, 70, 25, 10, "CA", .OpCA
OptionButton 7, 90, 25, 10, "PK", .OpPK
OptionGroup .Screen
OptionButton 50, 10, 20, 10, "01", .Sc01
OptionButton 50, 25, 20, 10, "02", .Sc02
OptionButton 50, 40, 20, 10, "03", .Sc03
OptionButton 50, 55, 20, 10, "06", .Sc06
OptionButton 50, 70, 20, 10, "07", .Sc07
OptionButton 50, 85, 20, 10, "09", .Sc09
OptionButton 50, 100, 20, 10, "10", .Sc10
OptionButton 50, 115, 20, 10, "11", .Sc11
OptionButton 85, 10, 20, 10, "20", .Sc20
OptionButton 85, 25, 20, 10, "21", .Sc21
OptionButton 85, 40, 20, 10, "22", .Sc22
OptionButton 85, 55, 20, 10, "23", .Sc23
OptionButton 85, 70, 20, 10, "24", .Sc24
OptionButton 85, 85, 20, 10, "25", .Sc25
OptionButton 85, 100, 20, 10, "26", .Sc26
OptionButton 85, 115, 20, 10, "28", .Sc28
OptionButton 85, 130, 20, 10, "29", .Sc29
OptionButton 120, 10, 20, 10, "30", .Sc30
OptionButton 120, 25, 20, 10, "31", .Sc31
OptionButton 120, 40, 20, 10, "32", .Sc32
OptionButton 120, 70, 20, 10, "41", .Sc41
OptionButton 120, 85, 20, 10, "42", .Sc42
OptionButton 120, 100, 20, 10, "43", .Sc43
OptionButton 120, 130, 20, 10, "50", .Sc50
OptionButton 120, 145, 20, 10, "51", .Sc51
OptionButton 155, 10, 20, 10, "60", .Sc60
OptionButton 155, 25, 20, 10, "61", .Sc61
OptionButton 155, 40, 20, 10, "62", .Sc62
OptionButton 155, 55, 20, 10, "65", .Sc65
OptionButton 190, 10, 20, 10, "70", .Sc70
OptionButton 190, 25, 20, 10, "71", .Sc71
OptionButton 190, 40, 20, 10, "72", .Sc72
OptionButton 190, 55, 20, 10, "73", .Sc73
OptionButton 190, 70, 20, 10, "75", .Sc75
OptionButton 190, 85, 20, 10, "76", .Sc76
OptionButton 190, 115, 20, 10, "80", .Sc80
OptionButton 190, 145, 20, 10, "91", .Sc91
'optiongroup.mainscreen
OptionGroup .PU
OptionButton 229, 10, 25, 10, "EE", .PUEE
OptionButton 229, 30, 25, 10, "ES", .PUES
OptionButton 229, 50, 25, 10, "F", .PUF
GroupBox 0, 1, 34, 161, ""
GroupBox 40, 0, 175, 161, ""
GroupBox 223, 1, 31, 161, ""
End Dialog
I need to setup an OptionGroup to a predefined value in a dialogbox. But I don't know how to do that.
For instance based on a condition, I want to setup OptionGroup .MainScreen to option 0 or 1 or etc...
Could you help me ?
Begin Dialog dlgHouseSample 254, 151, 323, 171, "GSS User Interface"
ButtonGroup .ButtonPressed
OkButton 260, 8, 50, 14
CancelButton 260, 29, 50, 14
PushButton 260, 49, 50, 14, "&R"+CHR$(233)+"initialiser", .btnReset
OptionGroup .MainScreen
OptionButton 7, 10, 25, 10, "MI", .OpMI
OptionButton 7, 30, 25, 10, "SK", .OpSK
OptionButton 7, 50, 25, 10, "AR", .OpAR
OptionButton 7, 70, 25, 10, "CA", .OpCA
OptionButton 7, 90, 25, 10, "PK", .OpPK
OptionGroup .Screen
OptionButton 50, 10, 20, 10, "01", .Sc01
OptionButton 50, 25, 20, 10, "02", .Sc02
OptionButton 50, 40, 20, 10, "03", .Sc03
OptionButton 50, 55, 20, 10, "06", .Sc06
OptionButton 50, 70, 20, 10, "07", .Sc07
OptionButton 50, 85, 20, 10, "09", .Sc09
OptionButton 50, 100, 20, 10, "10", .Sc10
OptionButton 50, 115, 20, 10, "11", .Sc11
OptionButton 85, 10, 20, 10, "20", .Sc20
OptionButton 85, 25, 20, 10, "21", .Sc21
OptionButton 85, 40, 20, 10, "22", .Sc22
OptionButton 85, 55, 20, 10, "23", .Sc23
OptionButton 85, 70, 20, 10, "24", .Sc24
OptionButton 85, 85, 20, 10, "25", .Sc25
OptionButton 85, 100, 20, 10, "26", .Sc26
OptionButton 85, 115, 20, 10, "28", .Sc28
OptionButton 85, 130, 20, 10, "29", .Sc29
OptionButton 120, 10, 20, 10, "30", .Sc30
OptionButton 120, 25, 20, 10, "31", .Sc31
OptionButton 120, 40, 20, 10, "32", .Sc32
OptionButton 120, 70, 20, 10, "41", .Sc41
OptionButton 120, 85, 20, 10, "42", .Sc42
OptionButton 120, 100, 20, 10, "43", .Sc43
OptionButton 120, 130, 20, 10, "50", .Sc50
OptionButton 120, 145, 20, 10, "51", .Sc51
OptionButton 155, 10, 20, 10, "60", .Sc60
OptionButton 155, 25, 20, 10, "61", .Sc61
OptionButton 155, 40, 20, 10, "62", .Sc62
OptionButton 155, 55, 20, 10, "65", .Sc65
OptionButton 190, 10, 20, 10, "70", .Sc70
OptionButton 190, 25, 20, 10, "71", .Sc71
OptionButton 190, 40, 20, 10, "72", .Sc72
OptionButton 190, 55, 20, 10, "73", .Sc73
OptionButton 190, 70, 20, 10, "75", .Sc75
OptionButton 190, 85, 20, 10, "76", .Sc76
OptionButton 190, 115, 20, 10, "80", .Sc80
OptionButton 190, 145, 20, 10, "91", .Sc91
'optiongroup.mainscreen
OptionGroup .PU
OptionButton 229, 10, 25, 10, "EE", .PUEE
OptionButton 229, 30, 25, 10, "ES", .PUES
OptionButton 229, 50, 25, 10, "F", .PUF
GroupBox 0, 1, 34, 161, ""
GroupBox 40, 0, 175, 161, ""
GroupBox 223, 1, 31, 161, ""
End Dialog