TListBox的Item改变高度

来源:互联网 发布:网络作家吧 编辑:程序博客网 时间:2024/05/29 07:51

TListBox.Stye := lbOwnerDrawVariable

procedure TForm2.ListBox1MeasureItem(Control: TWinControl; Index: integer;  var Height: integer);begin  if Index mod 2 = 0 then    Height := 30  else    Height := 20;end;

0 0
原创粉丝点击