It seems that AlertWindows are not correctly scaled in DAWs that have a dedicated HiDPI mode.
I am using a Windows scaling of 200% with HiDpi mode switched on in Cubase, Reaper or StudioOne. The plugin editor is scaled correctly, but any AlertWindow that is opened from the plugin remains extremely small and can not be scaled.
Same situation on macOS.
As far as I could see, this happens since a commit from March, 2nd 2020 (between JUCE 5.4.7 and JUCE 6.0):
Windows: Refactored DPI handling in the VST wrapper and hosting code
Since then, the plugin windows in HiDpi mode are scaled using an AffineTransform. But as AffineTransform does not work for Components on the Desktop, the AlertWindows remain unscaled.
Does anybody know a fix or a workaround to get AlertWindows to the correct size in HiDPI mode?
I’ve just checked the latest version from the develop branch with a simple test plugin that just has a button which opens an AlertWindow using AlertWindow::showMessageBox(). Unfortunately this made no difference.
Having the same problem. In dpi aware hosts on windows the UI scales correctly but the alert windows show up as really tiny. I am on Juce version 6.1.2.
I am using AlertWindow::showOkCancelBox and provide this->getTopLevelComponent () as associated component.