dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Fix to Bug 8984


From: Gopal V
Subject: Re: [DotGNU]Fix to Bug 8984
Date: Thu, 20 May 2004 08:54:16 -0700 (PDT)

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 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]