Hi Werner,

I am swamped working on our big oil spill in the Gulf of Mexico, but a 
couple quick comments:

Werner F. Bruhin wrote:
> problem where HitTest doesn't work after I made changed GUIMode.
> 
> What I do is e.g.:
> 
> 1. create some objects (1 rack (a fc.group) and 9 bottle objects 
> (fc.Circle)
> 2. change to GUIMode "SelectBottles" which works fine
> 3. change to GUIMode "SelectOtherObjects" which works fine
> 4. change to GUIMode "SelectBottles" DOES NOT WORK
> 
> The change GUIMode code does:
> - UnBindAll
> - qualifying objects get "bind" for "fc.EVT_FC_LEFT_DOWN"

> When I debug and get to fc.HitTest clicking the same object under point 
> 2 and 4 above return different values for color, first time I get "0, 0, 
> 7" and the second time I get "0, 0, 10".
> 
> Any one has some ideas on why this might happen.

I can't remember right now, but it's possible that when you unbind and 
re-bind, the hit-test color gets reset. I can't tell you for sure if I 
really tested multiple binding-unbinding (though the main demo does it...)

Can you trace a bit farther and see what the hit color is for that 
object? Also, you can look in the hit test dictionary to see how it's bound.

Sorry I don't have more time to dig into this.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

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

Reply via email to