----- Original Message -----From: Frazier, Joe JrSent: Wednesday, January 28, 2004 12:44 PMSubject: RE: [perl-win32-gui-users] Listview Colors and Buttons Images...1) I think what is is saying is that when a button is disabled, the corresponding image is no longer shown and the clientarea that the image was in becomes dark gray. I think he wants something like many menu's in many Windows applications (such as Outlook 2000) where the paste "icon" is disabled and the image is grayed out until there is something on the clipboard, but the image outline is fully viewable. My assumption is that there is a separate copy of the image(clipboard.bmp and clipboarddisabled.bmp for example) which is switched out during the disable event for the menu item and then back when the menuitem is enabled.I have no clue how to make this work with a menu, nor do I have time to test right this minute. I would have even less idea about making it work right for buttons.2) ditto. Look at the grid control, it is very cool.Joe Frazier, Jr.
Technical Support Engineer
Peopleclick Service Support
E-Mail: mailto:firstname.lastname@example.org-----Original Message-----
From: Jez White [mailto:email@example.com]
Sent: Wednesday, January 28, 2004 4:21 AM
To: firstname.lastname@example.org; email@example.com
Subject: Re: [perl-win32-gui-users] Listview Colors and Buttons Images...Hi,In my view, Win32::GUI is very capable - much more capable than first impressions. It can be used to build large applications. There are a few issues with some of the controls missing basic functionality, but this is changing all the time. The major problem - in my view - is with documentation and examples - but hopefully this is being addressed to.As for your points (for what it's worth!):1) Not sure what you mean by selecting the greyed color image?2) Not sure if you can change colors in a listview - however, look at the grid control:3) You can change the colors in the progress bar - make sure you have the latest version of Win32::GUI4) The status bar - you can control the size, just like any other control (Height, Width methods when the window resizes). If you have the latest version, you can split the status bar into parts, set icons and text to each part etc.5) Dunno:)6) Dunno:)Cheers,jez.----- Original Message -----From: firstname.lastname@example.orgSent: Tuesday, January 27, 2004 10:58 PMSubject: [perl-win32-gui-users] Listview Colors and Buttons Images...Hi All,
I am still trying everything in the GUI packages and I have some few
questions that I can not find a clue:
1)-When I use image on button, if you disable the button, the button is
completely dark grayed.
Is there a solution to select the grayed color or image:
$SaveAsImage = new GUI::Bitmap('saveas.bmp',0,22, 22);
$SaveAsButton = $MainWindow->AddButton(
-text => "Save As",
-name => "SaveAsButton",
-left => 510,
-top => 440,
-width => 22,
-height => 22,
-foreground => 0,
-tabstop => 1,
2)-Is there a way to switch between colors in the Listview, i.e. display
each row with different color
I can not even change the Listview foreground and background colors:
$Listview = $MainWindow->AddListView(
-text => "",
-name => "Listview",
-left => 408,
-top => 372,
-width => 252,
-height => 128,
-addstyle => WS_CHILD | WS_VSCROLL|WS_HSCROLL| 1,
#-gridlines => 1,
-checkboxes => 1, # see ItemCheck(INDEX)
#-hottrack => 1,
-tabstop => 1,
-background => $BGColor,
-foreground => $ForColor,
$ListviewC1 = $Listview->InsertColumn(
-index => 0,
-text => "First Name",
3)- Progressbar: How to change the colors or Not.
4)- The status bar, you can not control its size or location, looks normal!.
5)- If I use the AddGroupBox to pack a group of controls, works very fine
except it disables the functions on the kids like the colors and Tabs.
6)-The Textfield in Multiline mode, does not accept Enter when it is
by AddGroupBox, it only accepts Ctrl+Tab, any work around for this.
It would be very nice if anyone how has a good experiance and built a larg
using this GUI if he post a some code to help others understand the clues of
instead of everyone new is just trying and guessing.