krishKM / Modern-UI-Components-for-VBA

A helper dll for VBA users to design modern UI components. No install required!
MIT License
203 stars 41 forks source link

Center text in a toast message? #41

Closed DukeGamma closed 3 years ago

DukeGamma commented 4 years ago

Is it possible to center text and change any other formatting?

Saphirah commented 3 years ago

I would be interested in this too. Right now the text looks weird, when it is bound to the top left. I would like to be able to set a margin or center the text. Can we use standart html inside the MessageBox?

Edit: Tested it and html does not work.

lajjutz commented 3 years ago

Hello In my case I usually put more space characters, in order to get an center text, but, when the text length is major than 34 a new line is created..

image

image

Regards.

krishKM commented 3 years ago

Fixed, update relased. You can now use TextAlign, PaddingLeft, MarginLeft properties. See the sample file

lajjutz commented 3 years ago

Hello Krish..

How we use these properties when calling the object gDll.Toast?