zac
zac

Reputation: 4918

Is there way to display Toast message in specific location?

Using Delphi Tokyo and the component TFMXToast I display a toast message like this:

FMXToast1.ToastMessage := 'my message';
FMXToast1.Show(self);

This appear in the form bottom , is there a way to change the message location ?

Upvotes: 2

Views: 666

Answers (1)

zac
zac

Reputation: 4918

Thanks to @Victoria

//Top position
FMXToast1.Align := TTextAlign.Leading

//Center
FMXToast1.Align := TTextAlign.Center

//Bottom
FMXToast1.Align := TTextAlign.Trailing

Upvotes: 2

Related Questions