RE: [perl-win32-gui-users] Pre selecting items in list Views and List Boxes

2004-12-02 Thread Glenn W Munroe
Yes, but that's just focus. Adding $mainWindow->ListView->SetFocus; after $mainWindow->ListView->Show; fixes that. I'm not quite sure why the Listbox example doesn't need it. Glenn _ From: Jez White [mailto:[EMAIL PROTECTED] Sent: Thursday, 02 December, 2004 16:00 To: Glenn W

Re: [perl-win32-gui-users] Pre selecting items in list Views and List Boxes

2004-12-02 Thread Jez White
Interesting - it does work - although the selected items are grey not blue (but if a third item is selected by clicking and holding shift, they all turn blue) - this is using XP styles - do you get the same? Now, as for why it doesn't work in my main app... Thanks, jez. - Original Messa

RE: [perl-win32-gui-users] Pre selecting items in list Views and List Boxes

2004-12-02 Thread Glenn W Munroe
Jez, Hummm. I was pretty sure you would have tried that. There must be something else wrong. Does this modification to your example not work for you? === use Win32::GUI; my $mainWindow = new Win32::GUI::Window ( -name =

Re: [perl-win32-gui-users] Pre selecting items in list Views and List Boxes

2004-12-02 Thread Jez White
Hi Glenn, Yeah - I tried that - but no joy - if Select is used in the list box it doesn't work either. Well, it doesn't work when the -multisel option is used, and only 1 row is selected when it's turned off. Cheers, jez. - Original Message - From: Glenn W Munroe To: 'Jez Whit

RE: [perl-win32-gui-users] Pre selecting items in list Views and List Boxes

2004-12-02 Thread Glenn W Munroe
Jez, I hope this isn't a stupid question, but have you tried Select(INDEX) and Deselect(INDEX)? I don't think they are exact equivalents of SetSel, but they do what I *think* you want to do. Glenn _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jez White Sent: Thursda

[perl-win32-gui-users] Pre selecting items in list Views and List Boxes (example)

2004-12-02 Thread Jez White
the example: --- use Win32::GUI; my $mainWindow = new Win32::GUI::Window ( -name => "mainWindow", -title=> "Testing", -pos => [0, 0], -size => [300, 300], ); my $lb=$mainWindow->AddListbox ( -name => "Listbox", -pos => [20, 60], -size => [

[perl-win32-gui-users] Pre selecting items in list Views and List Boxes

2004-12-02 Thread Jez White
Hi, I'm trying to pre select several items that appear in a list view. These items have been selected by the user previously, so when the list is reshown later I want those items to be pre-selected. The example below works with a list box - but for the life of me, I can't seem to get it working

RE: [perl-win32-gui-users] Revisited - Rebar and Toolbars

2004-12-02 Thread Chris Wearn
I agree that the Dropdown buttons are a challenge, and it sounds as though you have progressed further than I got today. However this may be because I have got two toolbars, each added to a band, and some of the behaviour of a stand alone toolbar does not appear to work in this combination... perha

RE: [perl-win32-gui-users] Revisited - Rebar and Toolbars

2004-12-02 Thread Frazier, Joe Jr
Np, I learned from this as well, so its all good. Now from your example I also played around and was wondering if anyone had played with dropdown buttons? Mainly, I have not been able to get the _ButtonClick event to capture events on the extended dropdown section of a button. I was able to