So, I’ve got an app that works great when I build it in Debug mode, but when I build in Release, the min/max/close buttons are disabled, and all my drag/drop between listboxes (which works great in Debug) stops working.
here’s my main.cpp
[code]class JuceGUIWindow : public DocumentWindow
{
public:
//==============================================================================
JuceGUIWindow()
: DocumentWindow (T(“Universal Test GUI”),
Colour(131,153,177),
DocumentWindow::allButtons,
true)
{
JuceGUIComponent* myJuceGUIComponent = new JuceGUIComponent();
if( myJuceGUIComponent->init() )
{
setContentComponent( myJuceGUIComponent );
setVisible (true);
setResizable( true, false );
setResizeLimits( 640, 440, 960, 960 );
//maximized = false;
// centre the window on the desktop with this size
centreWithSize (800, 500);
}
else
{
AlertWindow::showMessageBox( AlertWindow::WarningIcon, T("Problems ^_^;"), T("Component initialization failure."), T("Goodbye.") );
JUCEApplication::quit();
}
}[/code]
I figured out that if I add: getMinimiseButton()->setEnabled( true );
getMaximiseButton()->setEnabled( true );
getCloseButton()->setEnabled( true );
Then the buttons will start working, but obviously drag/drop doesn’t work, and using “setEnabled” on my listboxes doesn’t fix them (they work fine other than the drag/drop functionality).
Why does Juce disable things in Release mode?