View Single Post
Old 08-10-2018, 04:36 AM   #264
tompad
Human being with feelings
 
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 813
Default

Quote:
Originally Posted by Lokasenna View Post
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.
Ok, I go with the z-layering method this time then, but using window class
looked interesting.
__________________
ToDoList Obliques MusicMath Donation Some of mine and my friends music projects on Spotify
tompad is offline   Reply With Quote