Skip to content

Forcing JUCE dialog and file window via LUA on pannel load #504

Discussion options

You must be logged in to vote

The corresponding JUCE class for the File Manager is here :
https://docs.juce.com/master/classFileChooser.html

And is called via LuaBinds:

FileChooser dialog(dialogBoxTitle, initialFileOrDirectory, filePatternsAllowed, useOSNativeDialogBox);

I found something when calling an open/save window with :
utils.openFileWindow("Load preset from disk", File(""), "*.syx", false)

for exemple :

SysexFileFromDisk = utils.openFileWindow("Load preset from disk", File(""), "*.syx", false)

The last bool argument is for the file manager type.
true is Native OS file window
false is JUCE (ugly but working) file window

It's not exactly w…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by damiensellier
Comment options

You must be logged in to vote
1 reply
@damiensellier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants