[interfacekit] Re: PATCH: BView::IsHidden()
- From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Wed, 19 Nov 2003 15:43:14 +0100 CET
"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.
- References:
- [interfacekit] Re: PATCH: BView::IsHidden()
- From: burton666@xxxxxxxxx
Other related posts:
- » [interfacekit] PATCH: BView::IsHidden()
- » [interfacekit] Re: PATCH: BView::IsHidden()
- » [interfacekit] Re: PATCH: BView::IsHidden()
- » [interfacekit] Re: PATCH: BView::IsHidden()
- » [interfacekit] Re: PATCH: BView::IsHidden()
- [interfacekit] Re: PATCH: BView::IsHidden()
- From: burton666@xxxxxxxxx