On 27/02/2013 21:10, Werner F. Bruhin wrote:
> On 27/02/2013 18:54, Werner F. Bruhin wrote:
>> Hi Chris,
>>
>> I'll keep poking:-) .
> That wasn't too hard.
>
> My stuff to figure out where to position things uses the boundingbox, in
> this case the bb of the 'super group' and it returns:
> getStartPosNew bb: [[ nan  nan]
>
> So, just added a call to CalcBoundingBox and now the sub groups are
> showing again.
>
> Next thing I have to chase is that in this configuration my hittest
> 'fc.EVT_FC_LEFT_DOWN' which is bound to the 'super group' is not firing.
Doing some debug on this I see the following info for the group object 
in question (the one where the hit callback 'objectHit' is not called.

fcRackUnit.HitAble
True
fcRackUnit.HitColor
(0, 0, 1)
fcRackUnit.InForeground
False
fcRackUnit.Visible
True
fcRackUnit.CallBackFuncs
{10432: <bound method Designer.objectHit of 
<twcbsrc.controllers.fwinerackdesign.Designer; proxy of <Swig Object of 
type 'wxEvtHandler *' at 0x73bed28> >>}
fcRackUnit.HitFill
True

I added an another group of group object:

self.canvas.HitDict
{10432: {(0, 0, 1): <twcbsrc.tools.rack_utils.MovingCombinedGroup object 
at 0x07628FD0>, (0, 0, 2): <twcbsrc.tools.rack_utils.MovingCombinedGroup 
object at 0x07637BD0>}, 10433: {}, 10434: {}, 10435: {}, 10436: {}, 
10437: {}, 10438: {}, 10439: {}, 10440: {}, 10443: {}, 10444: {}}

Not that I am an expert in all this;-) , but all this looks fine but the 
objectHit method is still not called.

Do you have any tips on what else I should look at?

Werner
_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to