Popup dialog window

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
User avatar
pongasoft
Posts: 89
Joined: Sun Mar 11, 2018 5:57 pm
Location: Las Vegas, USA
Contact:

Popup dialog window

Post by pongasoft » Wed Dec 19, 2018 2:06 pm

Hello

I would like to display a little popup dialog do ask confirmation from the user (in my specific case, the user is about to do a destructive operation and I want to make sure that is what they want to do).

How do you do this with VSTGUI?

I was looking through the code and found

Code: Select all

void UIBitmapsController::showSettingsDialog ()
{
	UIDialogController* dc = new UIDialogController (this, bitmapPathEdit->getFrame ());
	UIBitmapSettingsController* fsController = new UIBitmapSettingsController (dataSource->getSelectedBitmap (), dataSource->getSelectedBitmapName (), editDescription, actionPerformer);
	dc->run ("bitmap.settings", "Bitmap Settings", "Close", nullptr, fsController, UIEditController::getEditorDescription ());
}
which seems to be opening a dialog window but uses UIDialogController which doesn't exist unless VSTGUI_LIVE_EDITING is set... which means works only in Debug mode, not Release.

Thanks
Yan

howardantares
Posts: 126
Joined: Tue Jun 21, 2016 1:46 pm

Re: Popup dialog window

Post by howardantares » Fri Jul 12, 2019 8:39 pm

We resorted to using native dialogs for Windows and Mac.

But beware: some hosts (Cubase, for one) will crash if the user closes the session or app while a popup window is still open. In JUCE (which we just moved to this year), we simply show different views over top of our main window instead.

Post Reply