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 

Problem with TPageControl Events: OnMouseDown and OnChange

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Jan 04, 2007 3:35 am    Post subject: Problem with TPageControl Events: OnMouseDown and OnChange Reply with quote



Hi Everyone,

I'm working with Delphi 5 Enterprise. I have a TPageControl with
several pages. I have the OnChange event defined and wanted to define
the OnMouseDown event. When I do that, I can no longer change tabs and
the OnChange event never fires. Am I missing something here? I read
elsewhere that the OnChange Event should fire first. Apparently it
does not.

What I want to have happen is when I click on a tab in the PageControl,
the new tab gains focus (as normal) and the OnChange event fires. I
also want to be able to detect when a tab is clicked (with the mouse)
so I can perform another action.

If you are wondering what the other action is I want to paint a border
around the tab sheet.

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal 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.