Hi
There is any way, in design mode or by code, to customize bitmap and text on toolbarbutton ?
Bye
Pieter
(Pieter)
2
Hi,
Yes you can access the bitmap and html text objects at runtime with the following code:
var
bmp: TTMSFMXBitmap;
txt: TTMSFMXHTMLText;
begin
TMSFMXToolBarButton1.Bitmap.LoadFromFile('myImage.png');
bmp := TMSFMXToolBarButton1.GetBitmapControl;
bmp.Align := TAlignLayout.Top;
bmp.Height := 30;
txt := TMSFMXToolBarButton1.GetTextControl;
txt.TextSettings.HorzAlign := TTextAlign.Leading;