TListview Detect column resize event lazarus / 31-LCL ---------------------------------------------------------------------- kpeters58 · 2015-08-06 16:46 Is there a way to detect a column resize for TListview? ---------------------------------------------------------------------- balazsszekely · 2015-08-06 18:56 Since you're under windows, you should subclass TListView and catch the HDN_BEGINTRACK, HDN_ENDTRACK , HDN_ITEMCHANGING messages. ---------------------------------------------------------------------- kpeters58 · 2015-08-06 19:53 Thanks - much appreciated ---------------------------------------------------------------------- Grahame Grieve · 2021-09-11 19:07 What if you're on Linux or OSX? ---------------------------------------------------------------------- jamie · 2021-09-12 12:31 Quote from: Grahame Grieve on September 11, 2021, 09:07:39 pmWhat if you're on Linux or OSX?  Ever heard of the phrase "Up a creek without a paddle" ?   But really if someone wanted to enhance that, those messages could be sent through the class from other widgets and not just windows. ---------------------------------------------------------------------- Grahame Grieve · 2021-09-13 21:06 Well, maybe this will bubble up to be a pain point enough for me.. ---------------------------------------------------------------------- jamie · 2021-09-13 21:55 I don't think you are trying hard enough. If you employ the OnCustomDraw even you can get a look at any visual changes in that event. You don't need to do any drawing because you can allow the Default draw to take place however, at that point you can examine the current widths of each Column with a copy of their widths elsewhere and if changed then you take action and also update the list afterwards at some point for the next time the widths change.  or positions etc.