Re: ListView columns

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

Assuming you use Win32lib you can use insertListViewColumn

Lke this:

constant pListView = create( ListView,{ },hWnd,x1,y1,x2,y2,or_all({LVS_REPORT,
LVS_SHOWSELALWAYS}))

insertListViewColumn(pListView,1,0,LVCFMT_LEFT,90,"4",0)
insertListViewColumn(pListView,1,0,LVCFMT_LEFT,33,"3",0)
insertListViewColumn(pListView,1,0,LVCFMT_LEFT,33,"2",0)
insertListViewColumn(pListView,1,0,LVCFMT_LEFT,33,"1",0)

the command will let you set the width of the column and how many
columns but, they have to be placed in reverse order which is
strange practice. I think this is fixed in the next not yet released version
of Win32lib.

Hope this helps!

Euman
euman at bellsouth.net


From: "Andy Drummond" <kestrelandy at xalt.co.uk>
> 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