I’m creating a customized AlertWindow by subclassing LookAndFeel_V4 and overriding some of the methods declared in the AlertWindow::LookAndFeelMethods struct (namely
I’m currently trying to change the Justification of both the title and the message text shown in the AlertWindow, and I’m a bit stumped at the moment!
I read this previous thread on the topic, which suggests that it is possible to change the Justification in the
I am already overriding that method, but there does not appear to be any straightforward way to change the text Justification. One of the parameters is a TextLayout reference, and I must admit that I am not very familiar with this class. It appears to be created from an AttributedString whose Justification cannot be modified once the TextLayout has been created, which is the case by the time
drawAlertBox() gets called.
It’s been a long day, so it’s very possible that I am missing something here. This is my first time really digging into the AlertWindow class, and some of the modifications have been less straightforward than I initially anticipated, so I’d love to get any pointers from fellow jucers who have done their own customizations.
Am I missing something here? Or does anyone know of a different way to change the text Justification in an AlertWindow?