Initial / minimum / best size for UltimateListControl

Hello,

in a Dialog i use an UltimateListControl. When showing the dialog the ulc size is very small so that nearly no entry is visible. I tried GetBestSize, GetBestFittingSize and others, but nothing gives me a size i would call ‘usable’. I found a way to set a size that suites me, but i think there might be better ways to implement this. Pleas give me some advice and/or hints.

Thanks.

ultimatechecklist.py (3.74 KB)

···

Torsten

Most likely you just need to create your columns first before adding to sizer (or more importantly, before setting and fitting it).

Here’s how I size my ULC (after adding columns, but not data):

#create a vertical sizer to stack the buttons on top of the list

leftVSizer=wx.BoxSizer(wx.VERTICAL)

leftVSizer.AddF(some_other_widget, wx.SizerFlags(0).Expand())

leftVSizer.AddF(my_ULC_widget, wx.SizerFlags(1).Expand())

Then later I call .Layout() on the panel.

···

On Thursday, February 19, 2015 at 10:02:25 AM UTC-8, Torsten wrote:

Hello,

in a Dialog i use an UltimateListControl. When showing the dialog the ulc size is very small so that nearly no entry is visible. I tried GetBestSize, GetBestFittingSize and others, but nothing gives me a size i would call ‘usable’. I found a way to set a size that suites me, but i think there might be better ways to implement this. Pleas give me some advice and/or hints.

Thanks.

Torsten