Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-04

Large toolbar buttons

13 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Richard Mace

Hi All,
I was wondering what the best component was for a tool bar with large buttons and images on. I am trying to use the TToolbar component, however, it doesn't seem to display captions and I can't seem to get the buttons to be bigger than 16x16?

Any ideas?

Thanks, as always in advance.

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140405/98ba1af1/attachment.html>

Reply by email

Mattias Gaertner
to Richard Mace
Show quoted text 7 lines
Hi All, I was wondering what the best component was for a tool bar with large buttons and images on. I am trying to use the TToolbar component, however, it doesn't seem to display captions and I can't seem to get the buttons to be bigger than 16x16? Any ideas?

Change the ImageList's Width and Height.

Mattias

Reply by email

Richard Mace
to Mattias Gaertner

Thanks Mattias,

Show quoted text 11 lines
I was wondering what the best component was for a tool bar with large > buttons and images on. I am trying to use the TToolbar component, however, > it doesn't seem to display captions and I can't seem to get the buttons to > be bigger than 16x16? > > Any ideas? Change the ImageList's Width and Height.

When I change the ImageLists's Height and Width it clears all of the current images, I presume that because I have to add larger images in now? Also, when do the captions get displayed?

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140406/e77c4179/attachment-0001.html>

Reply by email

Mattias Gaertner
to Richard Mace
[...] When I change the ImageLists's Height and Width it clears all of the current images, I presume that because I have to add larger images in now?

Yes.

Also, when do the captions get displayed?

Have you tried ShowCaptions?

Mattias

Reply by email

Mattias Gaertner
to Richard Mace
Show quoted text 9 lines
On 6 April 2014 08:21, Mattias Gaertner wrote: > > Also, when do the captions get displayed? > > Have you tried ShowCaptions? > Yes, I have. The buttons are linked to Actions so not sure if that makes any difference?

If you set Caption to '' then there is no text.

Check also ShowCaption of the button.

Mattias

Reply by email

Mattias Gaertner
to Richard Mace
Show quoted text 9 lines
> > > If you set Caption to '' then there is no text. > > Check also ShowCaption of the button. > > The caption is set to "Add user" and the ShowCaption is set to true, but it's still not showing the text on the button?

What happens when you add another toolbar, set ShowCaptions to true and add a button?

Mattias

Reply by email

Richard Mace
to Vojtěch Čihák: ? there are two ShowCaption properties. One TToolButton.ShowCaption and the second…
Vojt?ch ?ih?k wrote 9 lines
Hi, there are two ShowCaption properties. One TToolButton.ShowCaption and the second TToolBar.ShowCaption. Also, there is TToolBar.ButtonHeight when you need large buttons.

?Ah, that was it :)

Thanks?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140407/16b889c6/attachment.html>

Reply by email

Vojtěch Čihák
to Richard Mace

Hi,?
?
thinking about it, if now someone wants display Caption, he must: -set ToolBar.ShowCaptions to True
-set ToolButton.ShowCaption to True
-set some Caption
?
Isn't it to much? Isn't assigning any Caption enough? I thought it is because of Delphi compatibility but looking to their docs: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/!!MEMBERTYPE_Properties_ComCtrls_TToolButton.html seems that Delphi has no ToolBar.ShowCaption, so it is Lazarus invention. Is there any reason for this property? If no, I suggest to mark it as "deprecated". ?
Thanks
?
Blaazen?

Reply by email

Mattias Gaertner
to Vojtěch Čihák
Show quoted text 5 lines
Hi,? ? thinking about it, if now someone wants display Caption, he must: -set ToolBar.ShowCaptions to True -set ToolButton.ShowCaption to True

ToolButton.ShowCaption is True by default, so you don't need to set it.

-set some Caption ? Isn't it to much?

You only need to set ShowCaptions and Captions.

Isn't assigning any Caption enough? I thought it is because of Delphi

compatibility but looking to their docs:
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/!!MEMBERTYPE_Properties_ComCtrls_TToolButton.html

seems that Delphi has no ToolBar.ShowCaption, so it is Lazarus invention. Is there any reason for this property? If no, I suggest to mark it as "deprecated".

The idea is that some button captions can be hidden.

Mattias

Reply by email