Hi Chris,
On 19/06/2010 20:43, Christopher Barker wrote:
...
>> I now define bottles as "InForeground = True" and change what gets
>> "bind" in which GUIMode and so far it seems to work the way I like it to
>> work.
>>
> I'm glad you found a solution.
>
I was a bit too quick in thinking that I found a solution. Not using
groups for e.g. "move" is making things a bit complicated, so I am
having another go at it, and might have found the real reason.
My struct is like this:
a rack module = fc.group
- has rack items = one or more fc.circle | fc.rectangle | fc.polygone
- has a frame for rack module = one fc.polygone to represent the
"walls/sides" of an element
I have GUIModes which need to "act" on the rack model (move, delete) and
on the rack items (delete or show what the content of the item is, e.g.
details about the particular wine).
In fc.group.bind is this code:
for obj in self.ObjectList:
obj.SetHitPen(self.HitColor, self.HitLineWidth)
obj.SetHitBrush(self.HitColor)
obj.HitAble = True
So, in my GUIMode.BindAll I do "un-do" this by doing:
obj.Bind(fc.EVT_FC_LEFT_DOWN, mode.OnObjectHit)
obj.SetHitPen(obj.HitColor, obj.HitLineWidth)
obj.SetHitBrush(obj.HitColor)
obj.HitAble = True
Still need to do more work/test on this but does this make sense and
what would be a better/cleaner way to fix this?
Werner
_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas