Recent

Author Topic: [Solved] Some BGRAControls missing BorderSpacing  (Read 2763 times)

dsiders

  • Hero Member
  • *****
  • Posts: 1052
[Solved] Some BGRAControls missing BorderSpacing
« on: January 07, 2019, 02:45:59 pm »
I recently was working with TFlowPanel to handle automatic layout of controls. Using this component, you need to rely on the BorderSpacing property to fine-tune the appearance of controls on the layout panel.

Unfortunately, there are a couple of BGRAControls that do not publish the BorderSpacing property: TBCSVGViewer and TBCSVGButton.

Is this an over-sight, or by design?

BTW, TFlowPanel doesn't publish BorderSpacing either.

« Last Edit: January 08, 2019, 12:11:42 pm by dsiders »
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Some BGRAControls missing BorderSpacing
« Reply #1 on: January 07, 2019, 03:28:11 pm »
Hi If you open the file bcsvgbutton.pas and to the list of properties
Code: Pascal  [Select][+][-]
  1.   property BorderSpacing;
  2.   property Constraints;

Save the file, and rebuild the ide, on ide restart the properties should become visible.

This will add the BorderSpacing and the Constraints Property.

Hope that helps.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

dsiders

  • Hero Member
  • *****
  • Posts: 1052
Re: Some BGRAControls missing BorderSpacing
« Reply #2 on: January 07, 2019, 03:48:59 pm »
Hi If you open the file bcsvgbutton.pas and to the list of properties
Code: Pascal  [Select][+][-]
  1.   property BorderSpacing;
  2.   property Constraints;
  3.  

Save the file, and rebuild the ide, on ide restart the properties should become visible.

This will add the BorderSpacing and the Constraints Property.

Hope that helps.

Yes, I had done that to my local copy. But I was hoping the change could (or would) be included in the original library too.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

ps

  • Full Member
  • ***
  • Posts: 136
    • CSS
Re: Some BGRAControls missing BorderSpacing
« Reply #3 on: January 07, 2019, 03:49:32 pm »
BTW, TFlowPanel doesn't publish BorderSpacing either.
It's fixed https://bugs.freepascal.org/view.php?id=34729 and available in RC3
Small simple CSS/box model implementation: https://github.com/pst2d/csscontrols/tree/dev

dsiders

  • Hero Member
  • *****
  • Posts: 1052
Re: Some BGRAControls missing BorderSpacing
« Reply #4 on: January 07, 2019, 03:53:24 pm »
BTW, TFlowPanel doesn't publish BorderSpacing either.
It's fixed https://bugs.freepascal.org/view.php?id=34729 and available in RC3

Good to know. Thank you.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Some BGRAControls missing BorderSpacing
« Reply #5 on: January 07, 2019, 04:44:12 pm »
Done, I've added these properties in development branch of bgracontrols.

dsiders

  • Hero Member
  • *****
  • Posts: 1052
Re: Some BGRAControls missing BorderSpacing
« Reply #6 on: January 07, 2019, 05:04:54 pm »
Done, I've added these properties in development branch of bgracontrols.

Thank you very much.

Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

 

TinyPortal © 2005-2018