Weird layout by UltimateListCtrl with icon style

Hi all!
I want to write a icon show app (it has some buttons either), so i use UltimateListCtrl with icon style,

but the layout is very weird, the icons is untidy, just like this

maybe the icon name is too long, and the scrollbar is Horizontal, i want it be a Vertical one,

i don’t know how to make it a Vertical one too.

here is my code:

class FileList(

ULC.UltimateListCtrl

):

def init(self, parent, id=-1):

ULC.UltimateListCtrl.init(

self, parent, id, agwStyle=ULC.ULC_ICON|ULC.ULC_AUTOARRANGE

)

when i use wx.ListCtrl, it show up tidily, like this:

but wx.ListCtrl can’t add a button or other widget.

my code:

class FileList(

wx.ListCtrl

):

def init(self, parent, id=-1):

wx.ListCtrl.init(self, parent, id, style=wx.LC_ICON | wx.LC_AUTOARRANGE)

So, someone know how to make it tidily and have a Vertical scrollbar with UltimateListCtrl.

Thanks all!

Hi,

Are you aware of wx.lib.agw.thumbnailctrl ?

Werner

Hi,

wx.lib.agw.thumbnailctrl can add a button or some other widget?

Linzh

在 2013年10月29日星期二UTC+8下午3时35分35秒,werner写道:

···

Hi,

Are you aware of wx.lib.agw.thumbnailctrl ?

Werner

Nobody meet the same problem?