Sign in Join

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

Mailing lists / lazarus / 2008-08

ToolBar and hiding buttons

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Žilvinas Ledas

Hello all,

is it possile to hide ToolButton from ToolBar? If I make visible := false then the button is not drawn (not visible), but its place is left empty. I need to realign (or how to call this action?) all butons to ocupy that place. And I need an ability to show it again (in the same place).
The only way I have found so far is to make ToolButton autosize := true and afterwards make it visible := false and width := 1 (and to "undo" visible and width aterwards).
If I make width := 0 and "undo" it later - the ToolButton is placed in another place (one, two or three buttons furter from where it was first).

Why do I need it for? I need some kind of toolBar buttons manager ;) Thanks tof advices and help.

?ilvinas Ledas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080831/7b114bff/attachment.html

Reply by email