Scrolling the workspace lazarus / 31-LCL ---------------------------------------------------------------------- Nitorami · 2017-10-03 20:30 Hi all My attempt of a GUI now has a single Form with menu and a vertical toolbar, which is simply a TGroupBox with RadioButtons. When clicking on the empty space of Form1, a Box (Paintbox) is generated at the position of the mouse cursor. Moving the boxes around manually also works... it is a steep learning curve but I am impressed how simple the code is, after all. I need a large workspace to arrange the boxes, like in a drawing program such as Visio. Surprisingly, setting a few scrolling properties of Form1 already does the trick, and scroll bars appear whenever the Form is too small to show all boxes. However, the scrolling also scrolls the toolbar... of course, but this is not what I want. I think this could be avoided by using a second Form specifically for the drawing, but not sure. Can I use a frame ? Is there another way to fix the toolbar ? What I tried is setting the toolbars dragmode to dmautomatic and dragkind to dkDock; I can then at runtime move it out of Form1 as a separate window... but it has a close button, and when I click that, it is gone forever. ---------------------------------------------------------------------- jamie · 2017-10-03 21:22 if you want a separate scroll window within your form then you can use a TScrollBox and that can have its own interior scrolling.  You may also want to employ a TSplitter and set the anchors of the controls using the anchor editor of the adjacent controls. This way when you move the splitter the adjacent controls will auto position giving you more or less room for the menu on the left if needed. ---------------------------------------------------------------------- Nitorami · 2017-10-03 21:33 Quoteif you want a separate scroll window within your form then you can use a TScrollBox and that can have its own interior scrolling. Yes, this is what I want. But how do I paint on it ? Whenever I manually place a paintbox, it only appears on Form1 directly, not on the scroll window. Oh, I see, parent must be the scrollbox.