0
[JS] [CS3] UI Modal Dialog Layering
New Here
,
/t5/illustrator-discussions/js-cs3-ui-modal-dialog-layering/td-p/1163848
Feb 01, 2009
Feb 01, 2009
Copy link to clipboard
Copied
I have a dialog with a list of objects, sort of object manager, with a typical New/Edit/Delete set of buttons. I'm showing this dialog modally. Now, the New/Edit buttons are supposed to open modal edit dialogs on top of this window. And they apparently do, but some kind of a bug or lack of knowledge on my side makes this work not exactly right. The problem is layering.
Imagine this: I open a New/Edit dialog, then switch back to another application (which is something a user may do), and when I return back to my script, the editor is hidden behind the manager dialog, allowing me to click New/Edit buttons again.
Thus, I was even able to open several instances of editor dialogs, until I finally I added code to prevent this. But still the interface problem remains: the editor dialog floats under the manager window - and this is contrary to the UI convention of modal dialogs.
Is this something you guys are facing too? What am I doing wrong?
I'm using this syntax to open modal dialogs:
mywin = new Window ('dialog',...)
Best
Artur
Imagine this: I open a New/Edit dialog, then switch back to another application (which is something a user may do), and when I return back to my script, the editor is hidden behind the manager dialog, allowing me to click New/Edit buttons again.
Thus, I was even able to open several instances of editor dialogs, until I finally I added code to prevent this. But still the interface problem remains: the editor dialog floats under the manager window - and this is contrary to the UI convention of modal dialogs.
Is this something you guys are facing too? What am I doing wrong?
I'm using this syntax to open modal dialogs:
mywin = new Window ('dialog',...)
Best
Artur
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
LATEST
/t5/illustrator-discussions/js-cs3-ui-modal-dialog-layering/m-p/1163849#M238034
Feb 02, 2009
Feb 02, 2009
Copy link to clipboard
Copied
You will probably need to force your windows to a specific location on the screen to prevent overlap.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

