Good day Monks,
I've seen my question on a few different forums, and no one has offered a response, so I'll try it here...
I just added a couple of Radio Buttons to my Win32::GUI program, and noticed that it is not intuitively obvious how they tie together (i.e. select one button, and the other(s) become unselected).
Does anyone know the property that ties them together to make the radio buttons a part of a set? I fear that I will only be able to have one set of radio buttons per form.
Here is some code for two buttons that are a matched pair, even though nothing in the properties declare that they should be...
my $RB_Prod = $W1->AddRadioButton(
-text => "Production",
-name => "RB_PROD",
-pos => [ 100, 10 + 30*($PgmCtr-1)],
-width => 90,
-height => 20,
-foreground => 0xFFFFFF,
-background => 0xFF7F7F,
);
my $RB_Test = $W1->AddRadioButton(
-text => "Test",
-name => "RB_TEST",
-pos => [ 200, 10 + 30*($PgmCtr-1)],
-width => 60,
-height => 20,
-foreground => 0xFFFFFF,
-background => 0xFF7F7F,
);
Thanks for your wisdom...
Pete
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.