Scroll Panel, but don't overlap lazarus / 31-LCL ---------------------------------------------------------------------- iwilson · 2011-08-17 14:06 I could have sworn I had this working briefly this morning and then all of a sudden it wasn't, anyways... I have a Panel within a TabControl, I added a ScrollBar on the side of the panel so that it can scroll up and down within the  TabControl. The panel is obviously a lot taller than the TabControl. This all works fine except that the panel overlaps the tabs when I scroll down, I would like it to be contained (and cutoff) within the TabControl. Probably a stupid, easy question, but I don't know :p Thanks. ---------------------------------------------------------------------- Dick, from the internet · 2011-08-17 22:11 I tried it with a PageControl with a TabSheet and it works.  I added the panel and the scrollbar to the TabSheet and dropped a few lines of initialization code; no overlapping problems.  Example form/code attached. geno ---------------------------------------------------------------------- Dick, from the internet · 2011-08-17 22:58 BTW: I did try using the TabControl as you stated, and I have the same results - the Panel is over the TabControl; and is not confined to the Tab that is attached to, but covers additional Tabs, unlike the behaviour  with the TabSheets  on a PageControl.   I also noticed that the Style has no effect on the Tabs as well, could be a GTK glitch.  I have not used either control in a very long time, so I probably am overlooking something minorl.  Without knowing the full details of what you are expecting with your project, I personally, would recommend using the PageControl.   geno. ---------------------------------------------------------------------- iwilson · 2011-08-18 12:08 Thanks for the reply. I ended up putting the  panel within another panel and then that panel in the tab control, and that worked. I'll keep your suggestion in mind for the future, funny it won't work by itself. ---------------------------------------------------------------------- Dick, from the internet · 2011-08-18 20:39 Instead of using another panel and a scrollbar (I'm assuming you are still using this), you could also place  a panel on a TScrollBox for simplicity.  I didn't think of that earlier until you mentioned embedding one panel within another, though I use Scrollbox quiet a bit myself (duh!).  I was just focused on trying to get the control to function as you originally started out.  But, whatever works best for you to get the job done!! geno. ---------------------------------------------------------------------- iwilson · 2011-08-19 15:08 Thanks for the tip, I rarely make anything with GUI so I'm a little short on the basics.