Mark, ...and just for completeness, I have substituted the -addstyle option in my own application with the two options below:
-dropdown => 1, -vscroll => 1, Glenn -----Original Message----- From: Glenn W Munroe [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 01:03 To: 'Mark Nettlingham' Subject: RE: [perl-win32-gui-users] Listboxes and dropdowns Mark, The '-style' option is deprecated, as it resets any bits that you don't specifically set, sometimes with unexpected results. It is safer to use '-addstyle', which just aggregates the bits you specify. There are new options being added all the time; as of the latest (development) release there are '-dropdown' and '-dropdownlist' options, but having said that I'm not sure how to get them to work with vertical scrollbars either, so I think that either: -addstyle => WS_VSCROLL | CBS_DROPDOWNLIST, or -addstyle => WS_VSCROLL | CBS_DROPDOWN, will do what you want. Glenn -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Nettlingham Sent: Thursday, August 05, 2004 14:06 To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] Listboxes and dropdowns All, Have recently upgraded to the latest version of Win32::GUI, and am getting a warning from the following: $cs = $main->AddCombobox( -name => "cs", -pos => [ 80, $yval ], -tabstop=>1, -width => 170, -height => 130, -style => WS_VISIBLE | 3 | WS_VSCROLL | WS_TABSTOP ); Warning is: Win32::GUI: the -style option is deprecated! at C:/Perl/site/lib/Win32/GUI.pm line 610. Which is fine, but I'm having no luck creating a single-selection dropdown without assigning a style. I should add that I have no idea what the 'style' bit does -- I found that snippet somewhere on the web. It works fine, but I'm guessing it was deprecated for a reason - I just hope it's been replaced with something! Cheers, Mark ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users