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 

suppress tcombobox onclick event when scrolling

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





PostPosted: Sun Feb 01, 2004 12:29 pm    Post subject: suppress tcombobox onclick event when scrolling Reply with quote



delphi4
I have a dbedit that users can fill from a combobox and I need to
update de dbedit after the user has choosen and set focus to another
dbedit.
If I put the code in the onclick / onchange event, the dbedit gets
updated and the focus lost while the user is scolling through the
combobox with keys up/down (end of scrolling Smile.
If I leave onclick/oncange empty and setup the code under
chr(13)-onkeypress all is well keyboardwise but not mousewise of
course. Selecting an item with the mouse does not trigger an onexit
either. I cannot check for keypresses within an onclick / onchange
event. So I'm stuck.

Funny thing is that tdblookupcombobox behaves so differently.

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