回复: 回复: Re: 回复: 回复: Re: 回复�� Re: How to define or control the height of the ListCtrl rows =3F?=

I’ve got it done!

First I draw a blank icon size of width 1 and height 18(or any height you want), than initiate a instance wx.ImageList with size(1, 18), add the icon to the image list, and SetImageList to the listctrl, InsertImageStringItem to the control… so I got the row height 18.

a strange way to do that, isn’t it? :slight_smile:
光华 陶 artman328@yahoo.com.cn 写道:

···

why so? :frowning:

I hope there will be a function to do that, like myListCtrl.SetItemHeight(index)…

Thanks! I’ll stop trying to do that :slight_smile:
Robin Dunn robin@alldunn.com 写道:

光华 陶 wrote:

It works!
thanks a lot!
but waht i want is more space between
two rows, so the rows will be more
readable.

There isn’t a way to do that.


Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


抢注雅虎免费邮箱-3.5G容量,20M附件!


抢注雅虎免费邮箱-3.5G容量,20M附件!