Re: Fix to Bug 8984
Gopal V <gopalv82-/[email protected]>
| Newsgroups | gmane.comp.gnu.dotgnu.developer |
|---|---|
| Message-ID | <[email protected]> |
Hi,
> > My solution was to add a bool to Widget.cs, called
> > "mdiWidget".
> > MdiClientWidget.cs sets this bool to true when it
> > creates MDI child
> > windows. Then Widget.cs knows to keep travelling
> > upward rather than stop
> > there.
>
> Since I think there might be a more elegant solution
> to this :) ... I'll wait till tomorrow afternoon for
> it to hit me (or you or anyone reading this) , if it
> doesn't, I'll just check in your code as it is..
Try this to detect TopLevelWindows ?
while(window != null && !(window.parent is
RootWindow))
{
window = window.parent;
}
The question is indirectly to Rhys :) ... Would all
TopLevelWindows have RootWindow as a parent or
does things like XClockEmbed that we have , change
this ?.
Gopal
__________________________________
Do you Yahoo!?
Yahoo! Domains Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer