[interfacekit] Re: PATCH: BView::IsHidden()

"burton666@xxxxxxxxx" <burton666@xxxxxxxxx> wrote:
> > // TODO: You may hide it by relocating with -17000 coord units to 
> > the
> > left???
> > // "I don't think you want to do that" - axeld.
> 
> Well, actually, it's not so strange as you could think.
> That way you have to add zero code to the app_server, to check if a 
> window is hidden or not, and you probably don't have even to tell the 
> app_server, since the window/view is out of the visible space, so it 
> doesn't have to be drawn, updated or whatever.

That's not correct: you have to add extra code to correct Frame(), you 
need to check if the window isn't too large to be moved that way, you 
have to recheck and correct every MoveTo()/ResizeTo()/MoveBy() etc. 
(and btw, this is for views not for windows, but it should be the same 
anyway).
From the app_server's POV it's the same; you would only have to check 
if the view participates in the hierarchy with an extra flag (although 
you could use this trick there without having to change BView at all).

Bye,
   Axel.


Other related posts: