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 OCX Focus

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc
View previous topic :: View next topic  
Author Message
latao@bluewin.ch
Guest





PostPosted: Mon Oct 10, 2005 9:06 am    Post subject: Problem with OCX Focus Reply with quote



Hello
I created an OCX-Control containing of several TEdit-Fields.

My Problem: Since Windows treats the entire OCX-Control as a whole, I
can not move focus inside the control's ediot boxes, instead the
control loses focus as it is moved to the next control of the client
application.

Is there any possibility to keep the tab-focus and manage it
internally, until the last edit-box of my OCX has been reached ?

Greets
Roger

Back to top
Jamie
Guest





PostPosted: Mon Oct 10, 2005 6:37 pm    Post subject: Re: Problem with OCX Focus Reply with quote



[email]latao (AT) bluewin (DOT) ch[/email] wrote:

Quote:
Hello
I created an OCX-Control containing of several TEdit-Fields.

My Problem: Since Windows treats the entire OCX-Control as a whole, I
can not move focus inside the control's ediot boxes, instead the
control loses focus as it is moved to the next control of the client
application.

Is there any possibility to keep the tab-focus and manage it
internally, until the last edit-box of my OCX has been reached ?

Greets
Roger

you may need to set a windows hook to monitor the

messages in your ocx.
look at the SetWindowsHookEx in the win32 help.
actually, it almost sounds like you could handle
that in your ocx form , simply capture the message
there and process it.



--
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc 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.