Recent

Author Topic: listview cannot set column with using code is this a bug or my ignorance?  (Read 4871 times)

wiri17200

  • Newbie
  • Posts: 3
I have a listview with 3 columns.  and a button  the code i have when the button is clicked reads:
Code: [Select]
procedure TForm1.DefaultColumWidth();
begin
ListView1.Column[0].Width:= 214;
ListView1.Column[1].Width:=  75;
ListView1.Column[2].Width:=  62;
end;                                   

using lazarus 0.9.27 beta but the 0.9.26 doesn't work either. 

Can any kind soul shed a light on this newbie's problem.

Wiri

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: listview cannot set column with using code is this a bug or my ignorance?
« Reply #1 on: February 15, 2009, 03:09:04 pm »
Works here. Did you set ViewStyle to vsReport?

wiri17200

  • Newbie
  • Posts: 3
Re: listview cannot set column with using code is this a bug or my ignorance?
« Reply #2 on: February 15, 2009, 08:03:25 pm »
I did set the style to vsreport

 

TinyPortal © 2005-2018