Show child model window on parent modal window open [message #456796] |
Wed, 08 June 2005 19:24 |
Allan Messages: 1 Registered: July 2009 |
Junior Member |
|
|
I am trying to design a modal dialog that contains a button to open a
child modal dialog (which will filter items in a list). Since my users
will always click this button as soon as the parent dialog pops up, I
would like to automatically pop this child dialog up as soon as the
parent dialog is visible.
Tracing through _Window.open()_, I would like the child pop-up to be
opened after the _shell.open();_ call and prior to the
_runEventLoop(shell);_ call.
One way to go about this would be to extend Dialog, call
_setBlockOnOpen(false);_, override _open();_, call _shell.open()_, pop
up my filter dialog and after that closes, run the event loop.
The problem with this is _Window.runEventLoop(Shell)_ is private, so I
would be forced to duplicate that function on my custom dialog. This
seems like a less-than-ideal scenario.
Does anybody else have a better way to accomplish this?
|
|
|
Powered by
FUDForum. Page generated in 0.02651 seconds