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

Sorry, I misunderstood.

You can have as many Window elements in your script as you want - my GUI Builder has two at the moment, and will certainly pick up one or two more at some point.

I don't think it would break anything to have them share the OK and Cancel buttons, however:

1. You'd have to remember to move them to the appropriate z-layers all the time.

2. You'd have to change what function they're calling so the appropriate Window's :close is being run.

IMO it's way easier to have a separate pair of buttons for each window.
__________________
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