[SOLVED] Sizing columns in DrawGrid lazarus / 31-LCL ---------------------------------------------------------------------- VTwin · 2022-11-06 22:56 I recently noticed that TDrawGrid using goColSizing works fine on Macintosh and Linux, but does not work on Windows. An example is attached. Any comments appreciated. ---------------------------------------------------------------------- wp · 2022-11-06 23:20 Working fine for me: Win-11 Laz-main / FPC 3.2.2 / 64-bit or 32-bit. ---------------------------------------------------------------------- VTwin · 2022-11-07 15:06 Thanks wp. That is good to know. It may be my ancient version of Windows (7). It is all I have at the moment to run on VirtualBox. ---------------------------------------------------------------------- wp · 2022-11-07 16:51 This cannot be the reason for your issue. I have Win-7 in a VirtualBox, too, and your demo behaves correctly. ---------------------------------------------------------------------- VTwin · 2022-11-07 18:41 Thanks again wp for checking. This is odd. In general Lazarus and its compiled applications work fine on Windows 7. This is the first time I noticed something unusual. I am working on installing Windows 11 and Lazarus on VirtualBox, but it is slow going. ---------------------------------------------------------------------- VTwin · 2022-11-07 18:52 In case I was not clear, are you able to resize the column widths using the mouse? ---------------------------------------------------------------------- wp · 2022-11-07 19:00 Quote from: VTwin on November 07, 2022, 07:52:55 pmIn case I was not clear, are you able to resize the column widths using the mouse? Yes ---------------------------------------------------------------------- VTwin · 2022-11-07 20:54 Weird. I now have Lazarus 2.2.4 running on Windows 11 in VBox (but not so stable yet). If I create a new Application in either 7 or 11, add a TStringGrid and a TDrawGrid, and check goColSizing for each, I can not resize the columns. It works fine on Mac and Linux. ---------------------------------------------------------------------- VisualLab · 2022-11-07 22:13 I also checked on my computer. Changing the column widths with the mouse works fine. Tested on Windows 10 64-bit, Lazarus 2.2.0 FPC 3.2.2 x86_64. ---------------------------------------------------------------------- jamie · 2022-11-07 23:02 did you reverse the mouse LEFT/RIGHT button operations in your setup ? ---------------------------------------------------------------------- VTwin · 2022-11-08 18:13 Many thanks all. Presumably I have something amiss in my VBox (or Windows?) settings. I will try to solve it this evening. ---------------------------------------------------------------------- VTwin · 2022-11-08 22:55 It is still a mystery. Mouse drag works fine in the Lazarus form editor. Scrollbars work. I tried swapping mouse keys, but that just switches when I have to press the "control"/"command" button. I am encouraged that no one reports problems in Windows, so my compiled applications should be fine for end users. Is anyone else using a Macintosh VirtualBox host running Windows? Thanks ---------------------------------------------------------------------- VTwin · 2022-11-09 15:12 It has to do with VBox "Mouse Integration". I realized that every once in a while I could click on just the right place. Turning off mouse integration allows one to easily click on the column border. I think it is due to the way VBox converts from mouse location in percent to pixels, there is some discussion here: https://www.virtualbox.org/wiki/MouseInput Thanks