 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brad Arant Guest
|
Posted: Fri Oct 22, 2004 11:35 pm Post subject: TPaintBox and Mouse Event Handling |
|
|
Hello Gang,
Attempting to develop an application where I do some fairly simple vector
graphics onto a TPaintBox. All is well and working fine. However, I have a
situation where I have several overlapping TPaintBoxes each with their
respective vector "object" and I need to be able to select the "object" by
clicking on the line of the vector.drawing.
The question: Is there a way of doing this without always selecting the
topmost TPaintBox? The TPaintBox receives the mouse event if you click
anywhere in its rectangle whether something is drawn there or not. Perhaps
there is a mask I can reference to see if I am actually clicking on a drawn
vector line and select the appropriate layer. Anybody ever solve a problem
like this? Perhaps there is a better way to do this other than a TPaintBox.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|