Recent

Author Topic: TCoolBar/TCoolBands: Good at designtime, not working properly at runtime  (Read 3182 times)

Dieuwer

  • Newbie
  • Posts: 5
Using a TCoolBar component on a Form with four TCoolBands each holding a TToolBar with buttons.
At designtime, it looks good. At runtime every band is overlapping and drawn in the top left corner of the form, with only a couple of buttons shown.
What am I doing wrong??

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: TCoolBar/TCoolBands: Good at designtime, not working properly at runtime
« Reply #1 on: January 07, 2018, 10:12:27 pm »
It seems work well here, Linux+Qt. What's your OS, widgetset and Lazarus version?
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Dieuwer

  • Newbie
  • Posts: 5
Re: TCoolBar/TCoolBands: Good at designtime, not working properly at runtime
« Reply #2 on: January 07, 2018, 10:16:56 pm »
My Lazarus version is 1.6.4. Win 10.
Setting CoolBar.Autosize:= TRUE and calling CoolBar.AutosizeBands in the OnFormCreate handler seem to do the trick.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: TCoolBar/TCoolBands: Good at designtime, not working properly at runtime
« Reply #3 on: January 07, 2018, 10:30:53 pm »
@ Setting CoolBar.Autosize:= TRUE and calling CoolBar.AutosizeBands in the OnFormCreate handler seem to do the trick.

Good, however it should work even without this trick. TCoolBar was mainly developed on Linux with some tests on Wine.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

ASerge

  • Hero Member
  • *****
  • Posts: 2240
Re: TCoolBar/TCoolBands: Good at designtime, not working properly at runtime
« Reply #4 on: January 08, 2018, 05:14:45 pm »
At designtime, it looks good. At runtime every band is overlapping and drawn in the top left corner of the form, with only a couple of buttons shown.
Not reproduced.
Lazarus 1.8 x64, Windows. At runtime it looks like at designtime.

Dieuwer

  • Newbie
  • Posts: 5
Re: TCoolBar/TCoolBands: Good at designtime, not working properly at runtime
« Reply #5 on: January 09, 2018, 01:30:54 am »
You are right, ASerge. After installing Lazarus 1.8 x64 the TCoolBar component works well without the need for "tricks".
I assume the bug was fixed with the new release of Lazarus.

 

TinyPortal © 2005-2018