Re: Stack order and raise_
- From: Damon Chaplin <damon karuna eclipse co uk>
- To: Alessandro Dentella <sandro e-den it>
- Cc: goocanvas-list gnome org
- Subject: Re: Stack order and raise_
- Date: Tue, 22 Sep 2009 11:01:27 +0100
On Tue, 2009-09-22 at 11:45 +0200, Alessandro Dentella wrote:
> thanks Brandon for the explanation,
>
> On Tue, Sep 22, 2009 at 02:13:17AM -0700, Brandon Lewis wrote:
> > Alessandro Dentella wrote:
> >
> > I believe you're complicating matters by using groups. I don't think you
> > can raise the child of a group to a higher drawing order than the parent
> > group itself (think depth-first traversal of a tree).
>
> the docs don't mention this limitation, so it was not obvious to me.
You can only raise or lower items within their parent group.
The entire stacking order of the canvas is determined by the group
hierarchy. This is briefly mentioned in the GooCanvasGroup docs, but
could be made clearer.
> > I'm not sure why you have those two groups. Are they there for a reason?
>
> In the application I'm writing (a simple calendar + events) I have calendar
> days, that belong to days or weeks (it seems very reasonable as far as
> positioning is concerned and is natural to think that when you delete the
> week all the appointments of the week vanish toghether), but events
> (appointments) need to be moved around. That's why I wanted that events stay
> on top of all other objects even if they belong to some lower level
> group. In the actual iplementation as soon as you drop it, it changes the
> parent and it regains the visibility, but in the moving it disappears if it
> enters groups that where created before its own parent group.
You might need to create separate groups for the events, and place them
on top.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]