How do I change the justification of the AlertWindow text?


#1

Hi all:

I have several AlertWindows that are inheriting my custom LookAndFeel (yay!) but have centered text (boo!). How do I change the justification of the message text?

Thanks,

Sean Costello


#2

At the moment it’s done in LookAndFeel::drawAlertBox(), which is a bit of a PITA to overload, I have to admit…


#3

Is it possible to call a different LookAndFeel for the AlertWIndow, without changing the LookAndFeel of the main component that the AlertWindow is called from?


#4

You could create an AlertWindow, set its look and feel, and then show it…


#5

This probably won’t work for the static AlertWindow methods, will it?


#6

The static methods use default look and feel, so you could set that.