×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

OptionGroup default value

OptionGroup default value

OptionGroup default value

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close