I've been re-vamping my UI using SizedControls to make it look nicer and get HIG compliance, and as part of that process I went through and fixed my ListCtrl's to use the AutoWidth mixin. But it got me to wondering - is there a case where the AutoWidth mixin isn't wanted? Don't native controls always extend the columns to fit the list ctrl size? If it's not the case, certainly in practice most apps do things this way. I was just wondering why ListCtrl (or the wxPython wrapper) doesn't have this as a built-in feature.
Anyways, not a big deal, I was just curious as to why things were done this way.
I've been re-vamping my UI using SizedControls to make it look nicer and get HIG compliance, and as part of that process I went through and fixed my ListCtrl's to use the AutoWidth mixin. But it got me to wondering - is there a case where the AutoWidth mixin isn't wanted? Don't native controls always extend the columns to fit the list ctrl size? If it's not the case, certainly in practice most apps do things this way. I was just wondering why ListCtrl (or the wxPython wrapper) doesn't have this as a built-in feature.
Anyways, not a big deal, I was just curious as to why things were done this way.
Probably for the same reason that we have such an ugly API and everything else for the listctrl, because that is the way the MS ListView control works.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!