nanogui: use windows id's for buttons?
Subject:
Re: [nanogui] use windows id's for buttons?
From:
Alex Holden ####@####.####
Date:
28 Jun 2001 07:40:05 -0000
Message-Id: <Pine.LNX.4.10.10106280831160.10689-100000@linuxhacker>
On Thu, 28 Jun 2001, Nikolaj Berntsen wrote:
> The question is whether we are best off treating the areas on the screen (an
> activated button might change the appearance of several rectangular ares on
> the screen) as windows with window id's or whether we should just let the
> button handle the areas in some other way?
It would probably be easiest to make each area be a seperate window. Don't
worry about creating too many windows; they have a pretty low overhead.
When each logical item (button, message window, tooltip, etc.) in the
display is a window, moving it or unmapping it will automatically move or
unmap any child windows. Also, if you move a window to a different
location on the screen you don't need to worry about what the new absolute
location of the items displayed within the area, are as they are still in
the same position relative to their parent window. Just my humble opinion.
--
------- Alex Holden -------
http://www.linuxhacker.org/
http://www.robogeeks.org/