Recent

Author Topic: [SOLVED] SpkToolbar tab settings  (Read 2072 times)

scons

  • Full Member
  • ***
  • Posts: 141
[SOLVED] SpkToolbar tab settings
« on: February 23, 2018, 12:50:10 pm »
Hi,


In SpkToolbar settings, for the pane and buttons you can choose to set the appearance rectangular, but not for the tabs.
If you have a pagecontrol just beneath it, it would look better if the appearance matches.

Are there some settings available to influence the appearance of the tabs (edges and distance between tabs for example) ?

Thanks

« Last Edit: February 23, 2018, 02:19:38 pm by scons »
Windows 10-64bit Lazarus 3.2 + FPC 3.2.2

wp

  • Hero Member
  • *****
  • Posts: 13646
Re: SpkToolbar tab settings
« Reply #1 on: February 23, 2018, 01:21:40 pm »
In SpklToolbars/spkt_const, there is a constant "TAB_CORNER_RADIUS" which has the value 4. If you change this to 0 there will be sharp corners, and the gap between tabs is gone as well (which seems to be a bug to me).

Unfortunately I don't have the time at the moment to fix this in a more flexible way (make TAB_CORNER_RADIUS a property of TSpkAppearance, and introduce an independent TabToTabSpacing property). But if you'd provide a patch I'd be happy to apply it.

scons

  • Full Member
  • ***
  • Posts: 141
Re: [SOLVED] SpkToolbar tab settings
« Reply #2 on: February 23, 2018, 02:22:48 pm »
Super it works !

But if you'd provide a patch I'd be happy to apply it.

Up to today I'm not able to do that, I would be even happier if I had those skills, trust me.
Windows 10-64bit Lazarus 3.2 + FPC 3.2.2

 

TinyPortal © 2005-2018