Hi there.
I have a listctrl in report view.
Now I want to set its columns to their ‘best width’ ( which means the width of the longest item or the header’s width if it’s greater than the longest item’s ).
From the documentation, however, it seems that either the longest item’s width or the header’s width can be set to.
Is there a workaround? Can I get the header’s width myself with some API ?
Moreover, I want to do it when user double-cliked the separator of column header, replacing the default behaviour ( which only adjusts the width to the longest item’s but not taking the header’s width into account ).
Is there any event can be caught when a separator of column headers double-clicked in listctrl/ultimatelistctrl ? I failed to find it in the documentation.
The event is also desired when using a listctrl with ListCtrlAutoWidthMixin.
Because I want to prevent users from double-clicking the last separator to adjust the last column, which will cause an unexpected behaviour of listctrl ( namely, the column shrinks but will not fill the extra space again ). You can see that in the official ‘listctrl’ demo.
Any replies would be appreciated.