StringGrid scrolling lazarus / 31-LCL ---------------------------------------------------------------------- taazz · 2018-04-12 03:30 See attached gif. As you can see for some reason the grid's top is scrolled outside the client area and can't be scrolled back in. I tried a couple ways including autsizing columns, resizing the grid it self (using anchors) to no avail. Is this something known a regresion of some sorts? Tried on lazarus 1.8.2 and I'm of to try it on 1.4 too. Hmm no animation for some reason try this one (https://ibb.co/hnqtBc) ---------------------------------------------------------------------- ASerge · 2018-04-12 15:11 Quote from: taazz on April 12, 2018, 05:30:13 amHmm no animation for some reason try this one How about a simple project? ---------------------------------------------------------------------- taazz · 2018-04-12 15:18 Sure! Find attached the project I used to create the gif above. ---------------------------------------------------------------------- lainz · 2018-04-12 15:52 Quote from: taazz on April 12, 2018, 05:18:46 pmSure! Find attached the project I used to create the gif above. Align the toolbar to bottom, as you can see it get's sized and positioned fine, that your code does: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i aGrid.Left  := 5;  aGrid.Top   := 5;  aGrid.Width := 300;  aGrid.Height:= 120; Then you need to do (With toolbar at top) Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i aGrid.Top := form1.ToolBar1.Height + 5; ---------------------------------------------------------------------- ASerge · 2018-04-12 15:55 Toolbar with Align = alTop. Grid Align = alNone. aGrid.Top  := 5. As a result, grid is located under the ToolBar. Part of the scrollbar is hidden under the ToolBar. ---------------------------------------------------------------------- taazz · 2018-04-12 16:04 Yeah I see it now its one of those days I guess  Thank you everyone for the feedback ---------------------------------------------------------------------- PatBayford · 2018-04-24 00:35 I believe this to be an artefact caused by the behaviour of TToolBar and TCoolBar components, which appear to NOT fully comply with the general Align rules. I have had similar problems in the past with other combinations employing these components - never been able to decide if the fault is with the Windows API implementation, or with the Pascal code! ---------------------------------------------------------------------- valdir.marcos · 2018-04-24 05:21 Form this thread, I have searched open bugs about ToolBar, CoolBar, StringGrid, and scrolling and could not find something specific, but found some bugs that might be similiar: 0016014: TStringGrid - ScrollBar is not displayed. https://bugs.freepascal.org/view.php?id=16014 0031268: StringGrid Painting issue https://bugs.freepascal.org/view.php?id=31268 0022070: Draw partially visible row in DBGrid https://bugs.freepascal.org/view.php?id=22070 0031688: lcl: Toolbar AutoSize adjustment works improperly https://bugs.freepascal.org/view.php?id=31688 0025550: Anchors do not work when hiding TToolBar https://bugs.freepascal.org/view.php?id=25550 0023051: On Linux every report except 1-st is printed cropped to top left rectangle https://bugs.freepascal.org/view.php?id=23051 0014428: Patch for changing panels/speedbuttons to toolbars/toolbuttons and objectinspector docking https://bugs.freepascal.org/view.php?id=14428 If nothing matches, should the information on this thread be transformed in a bug report? ---------------------------------------------------------------------- taazz · 2018-04-24 05:26 there was no bug. Positioning the grid at top 5 I was placing it behind the toolbar. It was an over-site on my part.