Recent

Author Topic: Horizontal TSplitter  (Read 451 times)

Saylo_49

  • New Member
  • *
  • Posts: 34
Horizontal TSplitter
« on: May 21, 2019, 03:01:19 am »
I used the Splitter component found in the Additional  Tab but it works only vertically
when turning it horizontally it does not work like it is work on vertical

Is there a way to make this happen or is there another component that can do this ?
Lazarus 2.0.2 - FPC 3.0.4 - Win32

valdir.marcos

  • Hero Member
  • *****
  • Posts: 831
Re: Horizontal TSplitter
« Reply #1 on: May 21, 2019, 03:17:35 am »
I used the Splitter component found in the Additional  Tab but it works only vertically
when turning it horizontally it does not work like it is work on vertical
Is there a way to make this happen or is there another component that can do this ?
I still believe it works as expected.
Can you attach a small sample?

wp

  • Hero Member
  • *****
  • Posts: 6331
Re: Horizontal TSplitter
« Reply #2 on: May 21, 2019, 09:40:58 am »
Did you set the "Align" of the splitter correctly? When you want to resize a bottom-aligned panel the corresponding splitter must have its "Align" set to alBottom, too, and it must be located above the panel; correspondingly, for a top-aligned panel the splitter must be positioned below the panel and its "Align" must be set to alTop.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10