RE: [perl-win32-gui-users] Dynamically changing foreground and ot her options

2003-08-14 Thread Peter Eisengrein
Not sure about your first question, but to enable/disable a menu item use: $filemenu->{'Open'}->Enabled(0); # disable $filemenu->{'Open'}->Enabled(1); # enable -Original Message- From: Erik Shön [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 4:07 PM To: perl-win32-gui-users@

[perl-win32-gui-users] Dynamically changing foreground and other options

2003-08-14 Thread Erik Shön
Hello, I've been trying to dynamically change the -foreground value for a textfield. The following didnt work: $TextField->Change( -foreground => [ 255, 0, 0 ] ); $TextField->InvalidateRect(1); Nor did assigning different font objects. And from the info I've gathered on the

[perl-win32-gui-users] Listbox::Select with multi-selection

2003-08-14 Thread fundarek
Just spent some time scratching my head about programatically selecting items in listbox configured for multiple selections. Listbox->Select function doesn't work here, as it sends LB_SETCURSEL =390 message. I've found one must send LB_SETSEL = 389 message instead for multi listboxes. Listbox-