AlignControls for TCoolBar [Patch]
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
With this patch are controls on bands aligned more solidly.
I was considering to enable BorderSpacing.Around for controls but only place where I can hook is CoolBar.Resize. Unfortunately, LCL triggers many Resizes so it would lead to many unnecessary recalculation with only small gain. Therefore I decided for KISS principle and BorderSpacing.Around is now restricted for controls on bands.
Steps to reproduce:
Put TCoolBar to the Form and drop any control on it (TEdit is good choice because it has published Align property) - it will create a new band.
Try to change property Align or Anchors or BorderSpacing properties. With this patch it is restricted.
Additional information:
Lazarus 1.3 r44847M FPC 2.7.1 x86_64-linux-qt