>- I added some "RadioButton" to a window. It looks that they are all treated
>as one group of buttons in Win32::GUI. Is it somehow possible to create more
>than 1 group of radiobuttons in the same window?
Set the option -group => 1 in the first RadionButton control in each "radio
button group". I think that's supported. If it isn't, do it with an
-addstyle", 0x00020000, #WS_GROUP
That works for sure.
>- Is it possible to distinguish between whether a window is closed by the
>close icon in the top right corner of the window or via the ALT-F4 key?
Don't think so (uncertain).
>- Is it somehow possible to catch keyboard events? I did not find anything
>in the Win32::GUI docu except for some _KeyDown event which was associated
>to a single object.
I don't know if anyone has been able to get Keyboard Accelerators to work
for them properly (code examples wanted :)
In The GUI Loft, I use a Timer to poll for keyboard activity. Download the
and look at the sub ::timKey_Timer (in lib\TGL\WindowDesign.pm). It uses
the sub Win32::GUI::AdHoc::GetKeyboardState (in
It's not an elegant solution, but it works almost as desired.
------ ---- --- -- -- -- - - - - -
Johan Lindström Boss Casinos
If the only tool you have is a hammer,
everything tends to look
like a nail