Recent

Author Topic: TControlbar control is blank  (Read 867 times)

cov

  • Full Member
  • ***
  • Posts: 241
TControlbar control is blank
« on: November 15, 2020, 05:52:54 pm »
Hi,

After many years of not using Lazarus, I installed it today to write a small multimedia program.

I want to use the controls that I remember that shows the icons for 'play' 'stop' 'pause' 'rewind' and 'fastforward' but when I insert the control onto my form, the control is an empty blank rectangle.

Is there some issue with this control? What am I doing wrong?

Lazarus 2.0.6+dfsg-3 rDebian package 2.0.6+dfsg-3 FPC 3.0.4 x86_64-linux-gtk2

~Dave

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: TControlbar control is blank
« Reply #1 on: November 15, 2020, 06:15:38 pm »
TControlBar is cursed. It never worked perfectly and situation even worse now.  :D
Years ago, there were some troubles on windows but now it does not work neither on linux.
Use CoolBar.
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/

jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: TControlbar control is blank
« Reply #2 on: November 15, 2020, 06:37:21 pm »
The control is empty by default

you need to add what ever buttons you want to it, its not a predefined layout.

A TbuttonPanel does have predefined controls on it but most likely not what you want.
The only true wisdom is knowing you know nothing

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: TControlbar control is blank
« Reply #3 on: November 15, 2020, 06:48:55 pm »
When I put TButton on TControlBar it seems OK. Button is on its band. But TSpeedBtn dissapears. Band is created but it is empty.
Otherwise I can move bands and drag them on a new row.
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/

jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: TControlbar control is blank
« Reply #4 on: November 15, 2020, 07:02:39 pm »
seems to be a problem with the TSpeedbutton because it works with TWinControl buttons just fine.

maybe we need a TWinSpeedButton ;)

The only true wisdom is knowing you know nothing

cov

  • Full Member
  • ***
  • Posts: 241
Re: TControlbar control is blank
« Reply #5 on: November 16, 2020, 05:52:07 am »
Thanks all.

I thought it would be a nice shortcut.

It's been a while since I used Lazarus and I was wondering what I was doing wrong.

 

TinyPortal © 2005-2018