Modal Dialog Window broken


#1

Hi Jules,

It seems that Modal Dialog windows are currently broken on OSX. (works fine on WIndows)
If you click the red cross to close the window nothing happens.

The following code added to MainDemoWindow::MainDemoWindow() in Juce Demo exhibits it.

(class definition before the function)

[code]class TempDialogWindow : public juce::DialogWindow
{
public:
TempDialogWindow (const juce::String& title, const juce::Colour& colour, const bool escapeCloses)
: juce::DialogWindow (title, colour, escapeCloses, true)
{
}
~TempDialogWindow()
{
}
void closeButtonPressed()
{
setVisible (false);
}

};
[/code]

TextButton button("Test", "Test");
button.setSize(200, 200);
TempDialogWindow dw(TRANS("TEST"), Colours::darkgrey, true); 
dw.setContentComponent (&button, true, true); 
dw.centreAroundComponent (this, dw.getWidth(), dw.getHeight()); 
dw.setResizable (false, false); 
dw.setUsingNativeTitleBar(true); 
const int result = dw.runModalLoop(); 
dw.setContentComponent(0, false); 

Thanks,


#2

I think I fixed this last week - maybe try the very latest version?


#3

Indeed.
It now works fine.

Thanks,