BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TPaintBox and Mouse Event Handling

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Brad Arant
Guest





PostPosted: Fri Oct 22, 2004 11:35 pm    Post subject: TPaintBox and Mouse Event Handling Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.