From: Erick J. B. <er...@e-...> - 2001-02-16 19:39:04
|
Has anyone had the listview disappear if you try and resize the column? If I resize it, the first time it disappears, the second it reappears but without the scrollbars. Any one else? erick never stop questioning www.jeb.ca |
From: Jonathan S. <jso...@al...> - 2001-02-19 13:34:34
|
Eric, I use a listview in one of my applications I have wriutten and do not have that problem. What does your listview contruct look like? Is there any other code that might be responsible for this maybe? Jonathan Southwick Technical & Network Services Allegheny College, Meadsville, PA jso...@al... ----- Original Message ----- From: "Erick J. Bourgeois" <er...@e-...> To: <per...@li...> Sent: Friday, February 16, 2001 1:36 PM Subject: [perl-win32-gui-users] ListView Column Resize > Has anyone had the listview disappear if you try and resize > the column? If I resize it, the first time it disappears, > the second it reappears but without the scrollbars. Any one > else? > > erick > never stop questioning > www.jeb.ca > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
From: Erick J. B. <er...@e-...> - 2001-02-20 13:14:58
|
Jonathan, Basically what I am doing is creating labels (and controls), five sets of labels, as non-visible. Then I create the main window and show the first set of labels. When the user chooses a menu item under the "View" menu, then I show those labels and hide the previous ones. So, I basically use the main window as a blackboard to show what there is in the "View" menu. Should I update the window before I show the new labels? erick never stop questioning www.jeb.ca ----- Original Message ----- From: Jonathan Southwick <jso...@al...> To: <per...@li...> Sent: Monday, February 19, 2001 2:33 PM Subject: Re: [perl-win32-gui-users] ListView Column Resize > Eric, > > I use a listview in one of my applications I have wriutten and do not have > that problem. What does your listview contruct look like? Is there any > other code that might be responsible for this maybe? > > Jonathan Southwick > Technical & Network Services > Allegheny College, Meadsville, PA > jso...@al... > > ----- Original Message ----- > From: "Erick J. Bourgeois" <er...@e-...> > To: <per...@li...> > Sent: Friday, February 16, 2001 1:36 PM > Subject: [perl-win32-gui-users] ListView Column Resize > > > > Has anyone had the listview disappear if you try and resize > > the column? If I resize it, the first time it disappears, > > the second it reappears but without the scrollbars. Any one > > else? > > > > erick > > never stop questioning > > www.jeb.ca > > > > > > _______________________________________________ > > Perl-Win32-GUI-Users mailing list > > Per...@li... > > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-u sers > > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-u sers > |
From: Jonathan S. <jso...@al...> - 2001-02-20 15:15:13
|
Erick, I'm sorry but I am really confused now. Your original question was about resizing columns in a listview and your reply to my response had nothing to do with that at all. Am I missing something here? As to your second question. I do the same thing with a TabStrip. A user clicks on one tab and only certain labels and textfields appear, a second tab is clicked and those hide and others are shown. I do not "update" the window in between showing and hiding the various objects and have not had a problem. If you could paste your cose maybe there is a deeper problem. Also it would help me understand what you are saying is happening. Thanks. Jonathan Southwick Technical & Network Services Allegheny College, Meadsville, PA jso...@al... ----- Original Message ----- From: "Erick J. Bourgeois" <er...@e-...> To: <per...@li...> Sent: Tuesday, February 20, 2001 8:11 AM Subject: Re: [perl-win32-gui-users] ListView Column Resize > Jonathan, > > Basically what I am doing is creating labels (and controls), > five sets of labels, as non-visible. Then I create the main > window and show the first set of labels. When the user > chooses a menu item under the "View" menu, then I show those > labels and hide the previous ones. So, I basically use the > main window as a blackboard to show what there is in the > "View" menu. Should I update the window before I show the > new labels? > > erick > never stop questioning > www.jeb.ca > ----- Original Message ----- > From: Jonathan Southwick <jso...@al...> > To: <per...@li...> > Sent: Monday, February 19, 2001 2:33 PM > Subject: Re: [perl-win32-gui-users] ListView Column Resize > > > > Eric, > > > > I use a listview in one of my applications I have wriutten > and do not have > > that problem. What does your listview contruct look like? > Is there any > > other code that might be responsible for this maybe? > > > > Jonathan Southwick > > Technical & Network Services > > Allegheny College, Meadsville, PA > > jso...@al... > > > > ----- Original Message ----- > > From: "Erick J. Bourgeois" <er...@e-...> > > To: <per...@li...> > > Sent: Friday, February 16, 2001 1:36 PM > > Subject: [perl-win32-gui-users] ListView Column Resize > > > > > > > Has anyone had the listview disappear if you try and > resize > > > the column? If I resize it, the first time it > disappears, > > > the second it reappears but without the scrollbars. Any > one > > > else? > > > > > > erick > > > never stop questioning > > > www.jeb.ca > > > > > > > > > _______________________________________________ > > > Perl-Win32-GUI-Users mailing list > > > Per...@li... > > > > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-u > sers > > > > > > > > > _______________________________________________ > > Perl-Win32-GUI-Users mailing list > > Per...@li... > > > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-u > sers > > > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
From: Erick J. B. <er...@e-...> - 2001-02-20 16:15:55
|
Jonathan, You asked me: "What does your listview contruct look like? Is there any other code that might be responsible for this maybe?". So I described (described being the opertive word)how I constructed it and I introduced the fact that I do have other code that code be responsible. I'm sorry if I was not completly explicit. One of the controls that I create and show is a ListView. So, this listview needs to be hiden and shown many times (as the case may be). When I show the listview and start resiszing the columns it goes all wacky. Here is the code for the listview: $MainWin->AddListView( -name => "ListView", -pos => [45, 110], -size => [$MainWin->ScaleWidth-90, $MainWin->ScaleHeight-170], -style => WS_CHILD | WS_VISIBLE | 1 | WS_HSCROLL | WS_VSCROLL, -fullrowselect => 0, -gridlines => 0, -hottrack => 0, -view => 1, -visible => 0, #As you can see the initial state is non-visible -tabstop => 1, -checkboxes => 1, -singlesel => 1, ); my $width = $MainWin->ListView->ScaleWidth; $MainWin->ListView->InsertColumn( -index => 0, -subitem => 0, -width => ($width/2)+10, -text => "Column1", ); $MainWin->ListView->InsertColumn( -index => 1, -subitem => 1, -width => $width/2, -text => "Column2", ); for (sort keys %Hash) { $MainWin->ListView->InsertItem( -text=>[$_, $Hash{$_}] ); # I have another problem here, I want to set the checkbox to "checked" } $MainWin->ListView->TextColor([255,150,55]); $MainWin->ListView->TextBkColor([0, 59, 102]); Sorry about the confusion :-) erick never stop questioning www.jeb.ca ----- Original Message ----- From: Jonathan Southwick <jso...@al...> To: <per...@li...> Sent: Tuesday, February 20, 2001 4:12 PM Subject: Re: [perl-win32-gui-users] ListView Column Resize > Erick, > > I'm sorry but I am really confused now. Your original question was about > resizing columns in a listview and your reply to my response had nothing to > do with that at all. Am I missing something here? > > As to your second question. I do the same thing with a TabStrip. A user > clicks on one tab and only certain labels and textfields appear, a second > tab is clicked and those hide and others are shown. I do not "update" the > window in between showing and hiding the various objects and have not had a > problem. > > If you could paste your cose maybe there is a deeper problem. Also it would > help me understand what you are saying is happening. > > > Thanks. > > > Jonathan Southwick > Technical & Network Services > Allegheny College, Meadsville, PA > jso...@al... |
From: Jonathan S. <jso...@al...> - 2001-02-20 20:37:19
|
----- Original Message ----- From: "Erick J. Bourgeois" <er...@e-...> To: <per...@li...> Sent: Tuesday, February 20, 2001 11:12 AM Subject: Re: [perl-win32-gui-users] ListView Column Resize > $MainWin->AddListView( > -name => "ListView", > -pos => [45, 110], > -size => [$MainWin->ScaleWidth-90, > $MainWin->ScaleHeight-170], > -style => WS_CHILD | WS_VISIBLE | 1 | > WS_HSCROLL | WS_VSCROLL, > -fullrowselect => 0, > -gridlines => 0, > -hottrack => 0, > -view => 1, > -visible => 0, #As you can see the initial > state is non-visible > -tabstop => 1, > -checkboxes => 1, > -singlesel => 1, > ); aaahhhhhhh .... the ListView construct ;] in looking over your code here I could not come up with an idea as to what might be wrong. would you have a problem in sending me the entire program so i could run it and try to make a determination from that and looking at the full source code at the same time? Jonathan Southwick Technical & Network Services Allegheny College, Meadsville, PA jso...@al... > Jonathan, > > You asked me: "What does your listview contruct look like? > Is there any other code that might be responsible for this > maybe?". So I described (described being the opertive > word)how I constructed it and I introduced the fact that I > do have other code that code be responsible. I'm sorry if I > was not completly explicit. One of the controls that I > create and show is a ListView. So, this listview needs to be > hiden and shown many times (as the case may be). When I show > the listview and start resiszing the columns it goes all > wacky. Here is the code for the listview: > > $MainWin->AddListView( > -name => "ListView", > -pos => [45, 110], > -size => [$MainWin->ScaleWidth-90, > $MainWin->ScaleHeight-170], > -style => WS_CHILD | WS_VISIBLE | 1 | > WS_HSCROLL | WS_VSCROLL, > -fullrowselect => 0, > -gridlines => 0, > -hottrack => 0, > -view => 1, > -visible => 0, #As you can see the initial > state is non-visible > -tabstop => 1, > -checkboxes => 1, > -singlesel => 1, > ); > my $width = $MainWin->ListView->ScaleWidth; > $MainWin->ListView->InsertColumn( > -index => 0, > -subitem => 0, > -width => ($width/2)+10, > -text => "Column1", > ); > $MainWin->ListView->InsertColumn( > -index => 1, > -subitem => 1, > -width => $width/2, > -text => "Column2", > ); > for (sort keys %Hash) { > $MainWin->ListView->InsertItem( -text=>[$_, > $Hash{$_}] ); > # I have another problem here, I want to set the > checkbox to "checked" > } > $MainWin->ListView->TextColor([255,150,55]); > $MainWin->ListView->TextBkColor([0, 59, 102]); > > Sorry about the confusion :-) > > erick > never stop questioning > www.jeb.ca > > ----- Original Message ----- > From: Jonathan Southwick <jso...@al...> > To: <per...@li...> > Sent: Tuesday, February 20, 2001 4:12 PM > Subject: Re: [perl-win32-gui-users] ListView Column Resize > > > > Erick, > > > > I'm sorry but I am really confused now. Your original > question was about > > resizing columns in a listview and your reply to my > response had nothing to > > do with that at all. Am I missing something here? > > > > As to your second question. I do the same thing with a > TabStrip. A user > > clicks on one tab and only certain labels and textfields > appear, a second > > tab is clicked and those hide and others are shown. I do > not "update" the > > window in between showing and hiding the various objects > and have not had a > > problem. > > > > If you could paste your cose maybe there is a deeper > problem. Also it would > > help me understand what you are saying is happening. > > > > > > Thanks. > > > > > > Jonathan Southwick > > Technical & Network Services > > Allegheny College, Meadsville, PA > > jso...@al... > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |