Niklas Nebel wrote: > Max Giesbert wrote: >> i would like to implement something like the rubber/pencil function >> known from excel. Therefore i need some information if it is possible. >> >> 1. can i customize the mouse cursor? (i think i read something about it >> but i can't find it anymore... ) >> 2. to identify which line was clicked (there might be other ways): >> - get the cell that was clicked >> - the the position of the cursor on the screen in that moment >> - get the position of the cell on the screen >> that way i could calculate which side of the cell was clicked. or is >> there something easier? or should i take another approach? > > You can use XEnhancedMouseClickBroadcaster to get the object (cell or > shape) which was clicked, but not which side of it. You'll have to > calculate that yourself. Thanks for pointing to XEnhancedMouseClickBroadcaster . I register a XEnhancedMouseClickHandler to it. But I only have an EnhancedMouseEvent in the mousePressed method. How can i find out the cell clicked with that? I didn't find any suiting methods.
Max > > Niklas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
