Listview columns resizing bound to Form's lazarus / 31-LCL ---------------------------------------------------------------------- Riccardo Giuliani · 2012-07-29 15:44 Hi, hope this is the right forum. I'm trying to make the listview's columns resize everytime form (and then listview) resizes. The OnResize event doent's accomplish well the job i need, for a reason I've read in this page http://lazarus- ccr.sourceforge.net/docs/lcl/controls/tcontrol.onresize.html. What I'm interested in is this sentence: "If you want to customize the resize behaviour, use OnConstrainedResize instead." Now this could be a possible solution, but I frankly don't know how to use it. Tried to cast the listview as Tcontrol, but failing. Can somebody give me start? Thanks ---------------------------------------------------------------------- Knipfty · 2012-08-10 13:10 Hi Riccardo, Have you looked at the column properties on the listview?  I see there an autosize property which is set to false by default.  Also there are maxwidth and minwidth prperties as well.  Those should give you some control. It's always tricky to resize coponenents on a form when the form resizes.  You need to make a lot of descisions. Knipfty ---------------------------------------------------------------------- Riccardo Giuliani · 2012-08-10 14:34 Thanks for your reply. Autosize sets the width's columnns to the minimum value useful to show its own header (didn't say yet, but listview is in Report viewstyle), except the last one which fulfills the width until the end. But the worse aspect, which doesn't let me use the tricks with max and min - for example -, is that the event is triggered not so well; during a form's resizing could happen that the listview looses the event, resulting in a bad resizing.