Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[JS] [CS3] UI Modal Dialog Layering

New Here ,
Feb 01, 2009 Feb 01, 2009
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
TOPICS
Scripting
497
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2009 Feb 02, 2009
LATEST
You will probably need to force your windows to a specific location on the screen to prevent overlap.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines