I started using SKUI and want to create menus with the equivalent of the UI openpanel and savepanel.
It looks like SKUI does not have that implemented yet. Do you have some HTMLDialog code that
does the openpanel/savepanel functionality?
This question has been asked before (perhaps not specific to the SKUI project, but for web dialogs in general.)
If I remember correctly, @TIG has spoken in past threads of implementing an openpanel interface in a web dialog for a client project. I think he said he might not be able to share that code, but can answer questions you might have when you reach an impasse.
I also think that the SKUI project was lacking many of the HTML control elements. So you may need to add what you need to your own SKUI implementation. (Follow the guidelines and wrap the SKUI module & classes within your own namespace.)
The UI openpanel and savepanel are separate dialog boxes. I would like to have
a single form that has entries for a filename and also “inputbox” elements. Seems the
current API allows you to have one or the other, but not both.
Well on MS Windows these dialogs are actually the same. It comes from the system’s common dialog library. (However, the “File Types” dropdown and filetype filters only work when called from the UI::openpanel method.)
The only interface that comes anywhere close to this is the Importer interface. If an importer object has a supports_options? callback method that returns true, then the openpanel will have an “Options” button that fires whatever happens in the importer object’s do_options method. (But the user must click the “Options” button which is not always obvious to every user.)
And the only way to trigger an importer interface is via the File > Import… menu item and it’s open panel. The user must select your filetype importer from the drop-down picklist.