I put the TAniIndicator on my Android application. Problem is: the size. It defaults as 50x50px but look likes a 25x25px size. Is there something I can do to fix it?
Assign a handler to OnApplyStyleLookup on the TAniIndicator:
procedure TForm.IndicatorApplyStyleLookupHandler(Sender: TObject); var LImage: TImage; begin if (Indicator.ChildrenCount > 0) and (Indicator.Children[0] is TImage) then begin LImage := TImage(Indicator.Children[0]); LImage.WrapMode := TImageWrapMode.Stretch; end; end;
Assign a handler to OnApplyStyleLookup on the TAniIndicator:
ReplyDeleteprocedure TForm.IndicatorApplyStyleLookupHandler(Sender: TObject);
var
LImage: TImage;
begin
if (Indicator.ChildrenCount > 0) and (Indicator.Children[0] is TImage) then
begin
LImage := TImage(Indicator.Children[0]);
LImage.WrapMode := TImageWrapMode.Stretch;
end;
end;
David Nottage Believe me, just today I tested it and works!! Thank you
ReplyDeleteWhy wouldn’t I believe you? :-)
ReplyDelete