Re: ListView columns

new topic     » goto parent     » topic index » view thread      » older message » newer message

Andy,

I don't think it is an actual "column", it's just unused space, that's why
clicking on it has no effect.  To get rid of it, you'd have to make the
columns entirely fit the LV control.  Use  "getCtlSize ( atom id )" for the
LV, then compute the desired sizes of the columns to entirely fit the LV in
relation to the width of the LV, then use the "insertListViewColumn" command
Euman suggested.

Looks like if you add all the columns this way, you have to put the first
column first, then reverse the order of all the remaining to get them to be
in the expected place.  For simplicity, however, if you put the first column
in when you create the LV, then you can just put *all* the added ones in
reverse order, but then you lose the ability to set the width of the first
column.

Dan Moyer


----- Original Message -----
From: "Andy Drummond" <kestrelandy at xalt.co.uk>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, October 12, 2001 3:10 PM
Subject: ListView columns


>
> I have started using ListView boxes -
> and they are very good.
> But does anyone know why I ALWAYS
> have one extra unused and unusable
> column on the right side? And how to
> get rid of it! I should be very glad
> to know.
> The demo program with Win32Lib shows
> the same effect, so maybe even DC
> has trouble with this.
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu