[Project_owners] How to focus <dialog/> ?
waymost at gmail.com
Sat Jan 28 10:38:50 EST 2006
Yeah, it is somewhat sucky. Unfortunately, modal dialogs are no fun to have
around, and all they really do is cause problems. (That was at least a part
of the reason why error messages now come up as XUL in the browser as
opposed to modal dialogs.) I'm not sure there is a better solution, though.
The one other place I could suggest asking is on irc.m.o on #extdev.
Sorry I couldn't be of more help. Matt
On 1/28/06, Neil <neil at parkwaycc.co.uk> wrote:
> Eric H. Jung wrote:
> >Yes, that is precisely what I do... and it works when the options window
> isn't itself displaying a modal dialog. However, if, for example, the About
> Box is displaying on top of the options window, this code doesn't work for
> You can't focus a disabled window, such as one with a modal dialog. I
> suppose you could enumerate all windows and find out which one's opener
> is your window, and focus that instead, but that's somewhat sucky.
> Project_owners mailing list
> Project_owners at mozdev.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Project_owners