Werner F. Bruhin wrote: > On 19/06/2010 20:43, Christopher Barker wrote: > 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?
no time to really look at this, but maybe you can not re-set the HitColors at all -- then they should all just keep the color they had. -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
