View Single Post
Old 08-09-2018, 05:13 AM   #259
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by tompad View Post
What is the best practice if I need 2 windows in my script?
Is it to make one main window and load another separate window
(or using tabs in main window)

or

Is it to have one window and make use of z-index to show and
hide the different parts I want to use.
Do you mean two script windows (gfx.init) or two Window elements?

The first can't be done - scripts are limited to one window at a time, so you'd have to gfx.quit the first window, open a new one, and then do the same to re-open your original window after.

The second doesn't require anything special. Just make sure that the z-layers you define for the first window don't overlap with the z-layers for the second window, so they both have their own space to do stuff in.
__________________
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