sorry, i had discussed this off line with david, since i got it working with
just a little more attention. i guess i should have posted to the group.
thanks for your attention tho' aldo :)
btw, i just noticed your earlier post - i'm VERY glad that you are ok. as you
can tell, many of us are hopeless without you ;) welcome back!
"Aldo Calpini" <[EMAIL PROTECTED]> on 02/28/99 10:00:36 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (Sundar Raman/MW/US/3Com)
Subject: Re: [perl-win32-gui] Radio Buttons and Borders
Sundar Raman wrote:
>i'm not sure that the RadioButton implementation works yet, at least i've
not
>been able to get it to work either! maybe someone has more info on this?
the
>doc mostly has [TBD], which, i'm assuming, means that it's still on aldo's
>ever-growing list :)
yes, RadioButtons are working. [TBD] on the docs means To Be Documented,
in other words that the function is there, but documentation needs yet to
be written ;-)
>David Hiltz <[EMAIL PROTECTED]> on 02/14/99 03:51:08 PM
>
> I've installed build 301 and started playing with it. Two questions.
>
> Does anybody have some sample code to demonstrate the use of
>RadioButtons?
whops, sorry, I effectively forgot samples for the easiest things :-)
attached to this message there's a little sample for Button, RadioButton,
Checkbox and "borders" (see below).
> Does 301 support borders around widgets? Example:
> +- Colors -------------+
> | o Blue |
> | o Red |
> | o Green |
> +----------------------+
>
> If so, is there some sample code for borders?
yes, it's possible but actually a little "tricky"...
borders are really buttons with the BS_GROUPBOX style (which corresponds
to 7); so you should create a "fake" button with the -style option like
this:
$BS_GROUPBOX = 7;
$Window->AddButton(
-name => "Groupbox",
-left => 20,
-top => 20,
-width => 120,
-height => 60,
-text => "Colors",
-style => WS_CHILD | WS_VISIBLE | $BS_GROUPBOX,
);
next version will have a regular Win32::GUI::Groupbox class for
this kind of widget :-)
cheers,
Aldo Calpini
<[EMAIL PROTECTED]>
buttons.pl