Hi Carlos, I have implemented your suggestion in the CVS version. Rene Brun On Wed, 15 Oct 2003, Carlos Muņoz Camacho wrote: > On Fri, 10 Oct 2003, Rene Brun wrote: > > >It is not clear if your question is related to basic graphics in the pad > >or to the GUI. > > > >In attachement, you will find a script drawing triangles in a canvas > >and showing some simple action when you click on one triangle. > > In your example one needs to click on the _outline_ of a triangle. Is > there a way to easily extend that so that we can click on the _inside_ of > the triangle (it's usually what we want). For the moment I calculate > whether I'm inside or outside from the mouse position. That's easy enough > for a square, but it can be useful to extend that to a closed > TPolyline(3D) in general... > > Carlos >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET