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 <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
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
> [EMAIL PROTECTED]


Reply via email to