[Lazarus] toolbar and toolbutton issues

William de Oliveira Ferreira bdexterholland at gmail.com
Wed Dec 5 19:41:40 CET 2012


On 05-12-2012 13:58, Graeme Geldenhuys wrote:
> OK, so I set the Width and Height of ImageList, and re-added all my
> 24x24 images.
>
> I then set the Toolbar.Images to point to my ImageList. My existing
> toolbar buttons did not adjust to the size of the now known 24x24 images
> in the imagelist. Also the ToolbarButton.AutoSize property still does
> nothing.
>
> Plus, if ToolbarButton.AutoSize = False, and I try and change the
> ToolbarButton.Height property manually to say 26 (to fit my 24px
> images), it just jumps back to 22 as soon as I hit Enter!! So I still
> can't adjust the size of by toolbar buttons. :-(  Can it really be this
> hard?
>
>
> Regards,
>    - Graeme -
>

Graeme, could you try this?
begin
   ToolBar1.ButtonHeight := 36;
   ToolBar1.ButtonWidth  := 36;
   ToolBar1.AutoSize     := True;
end;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121205/eb0d12d8/attachment-0003.html>


More information about the Lazarus mailing list