Recent

Author Topic: TSplitter and Borderspacing.  (Read 279 times)

Birger52

  • Full Member
  • ***
  • Posts: 205
TSplitter and Borderspacing.
« on: April 12, 2020, 06:18:08 pm »
Apparently, there is no borderspacing in a TSplitter (not published) anyway. It is not available in Object inspector.
But it is available through Anchors in IDE.
It also works in IDE. At least until next time the project is loaded, at which time all set borderspacing through Anchors will be 0.
They are also 0 at runtime.
But they can be set through programming.

This must be a bug?
Lazarus 2.0.10 FPC 3.2.0
Win7 64bit
Playing and learning - strictly for my own pleasure.

jamie

  • Hero Member
  • *****
  • Posts: 3141
Re: TSplitter and Borderspacing.
« Reply #1 on: April 12, 2020, 06:28:20 pm »
Frankly I don't see a need for that when it comes to a splitter since its job is to maintain controls adjacent to it..

 But feel happy you found a way  :)

 Btw, there is also the paired splitter that gives you a couple of control pans and seems to work well too.
The only true wisdom is knowing you know nothing

Birger52

  • Full Member
  • ***
  • Posts: 205
Re: TSplitter and Borderspacing.
« Reply #2 on: April 15, 2020, 11:14:19 am »
The rest of us, don't need it either, then...

It's needed to make layout pleasant.

All other controls are a specified number of pixels from the border of the containing control - TSplitter isn't.

And there's a thing about having the option to actually set a borderspacing at designtime, that is simply ignored at runtime - why have the option to set it, then?
Lazarus 2.0.10 FPC 3.2.0
Win7 64bit
Playing and learning - strictly for my own pleasure.

wp

  • Hero Member
  • *****
  • Posts: 7250
Re: TSplitter and Borderspacing.
« Reply #3 on: April 15, 2020, 12:23:21 pm »
You can set the corresponding BorderSpacing of the neighboring controls, but this will leave the exposed uncovered space not responding to the mouse. Better to change the Width of the vertical splitter (or Height of the horizontal splitter). This will add other columns/rows of the splitter grip pattern, thought.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018