Old 07-17-2018, 10:11 PM   #1
InfiniteDimensionality
Human being with feelings
 
Join Date: Jun 2017
Posts: 187
Default Multiple graphics windows?

I'm creating a dialog ui interface for reaper extending my current gui. I'm trying to create modal dialogs and everything seems to work except now I need to close the window created with gfx.init.

There is a gfx.quit which does this BUT I want to be able to close the dialog without any other windows.

1. Does reaper actually support multiple windows? (using gfx.init of course)
2. Can we close specific windows and not all the windows? gfx.quit(title) would be ideal.
InfiniteDimensionality is offline   Reply With Quote
Old 07-18-2018, 12:01 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

One window per script only.
cfillion is offline   Reply With Quote
Old 07-18-2018, 06:13 AM   #3
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

I found it surprisingly easy to just add a "window" element within my GUI to simulate modal dialogs - designate a few textboxes and buttons that are only shown with the window, and when the window opens all other GUI input/updating is paused.

Even if you aren't interested in using my GUI library, feel free to borrow from Class - Window.lua if it offers any inspiration.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 07-18-2018, 07:40 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

I'm working on something in that matter, where you can open multiple windows per script. But it will take some more months to make that properly useable.

Until then, only one window per script.
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-18-2018, 11:20 AM   #5
InfiniteDimensionality
Human being with feelings
 
Join Date: Jun 2017
Posts: 187
Default

Quote:
Originally Posted by Lokasenna View Post
I found it surprisingly easy to just add a "window" element within my GUI to simulate modal dialogs - designate a few textboxes and buttons that are only shown with the window, and when the window opens all other GUI input/updating is paused.

Even if you aren't interested in using my GUI library, feel free to borrow from Class - Window.lua if it offers any inspiration.
Well, I don't really won't to learn a new structure. I've created my own gui and finished the dialog last night that simulates GetUserInputs. Basically works for my purpose. I had the gui code already but just had to get the dialog to work modally, which I was able to do after figuring out the problem with defer(which wasted a few hours).


I guess if one really needs control then using external apps with more capabilities would be best. Not sure the binding situation with reaper though, not really important though as I don't want to go there. I just really needed to be able to supply feedback for the user inputs.
InfiniteDimensionality is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.