Tab key to tab between controls does not work properly 
Author Message
 Tab key to tab between controls does not work properly

Hi,

In the program I am developing it was necessary to create a control that has
a textbox inside it. When I put, for example, three instances of my control
on a form, set the tab order (or tabindex property) for each of them and run
the application, the controls dont work as expected when I press the tab
key to move between them: if, with a mouse click (over the text box inside
the control...) I select the first control and then press the tab key, it
goes to the second control, as expected, but then, if I reselect the first
control with a mouse click over the text box inside it and press the tab
key, the focus goes to the third control, as if the second control still had
the focus... if I, again, reselect the first control with a mouse click and
press the tab key, the focus will continue in it (as if the third control
still had the focus and the first was being focused...)

I noticed this only happens if I put the text box inside the control I
create (opposed to inheriting from the TextBox class), as if I needed to do
something else to tell the parent control that a child control of it got the
focus so that the parent control updates its info about which control is the
active one (has the focus).

I dont know if I was clear enough explaining the situation. If not, please
just say it and I will try to clarify.

Thanks for your attention,
Daniel Cardoso



Sun, 01 May 2005 11:19:56 GMT  
 Tab key to tab between controls does not work properly
I had the same problem!  I have still not got a handle on
how to fix this.  Did you figure out a way?

Let me know!

Thanks!

Atul

Quote:
>-----Original Message-----
>Hi,

>In the program I am developing it was necessary to create
a control that has
>a textbox inside it. When I put, for example, three

instances of my control
Quote:
>on a form, set the tab order (or tabindex property) for

each of them and run
Quote:
>the application, the controls dont work as expected when
I press the tab
>key to move between them: if, with a mouse click (over
the text box inside
>the control...) I select the first control and then press
the tab key, it
>goes to the second control, as expected, but then, if I
reselect the first
>control with a mouse click over the text box inside it
and press the tab
>key, the focus goes to the third control, as if the

second control still had
Quote:
>the focus... if I, again, reselect the first control with
a mouse click and
>press the tab key, the focus will continue in it (as if
the third control
>still had the focus and the first was being focused...)

>I noticed this only happens if I put the text box inside
the control I
>create (opposed to inheriting from the TextBox class), as
if I needed to do
>something else to tell the parent control that a child

control of it got the
Quote:
>focus so that the parent control updates its info about

which control is the
Quote:
>active one (has the focus).

>I dont know if I was clear enough explaining the

situation. If not, please
Quote:
>just say it and I will try to clarify.

>Thanks for your attention,
>Daniel Cardoso

>.



Wed, 01 Jun 2005 03:06:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Tab not working properly in control

2. The Tab Key Do Not Works In MFC Generated Active-X Control Please Help

3. tab key not tabbing in my dialog

4. Tab Control Ctrl-Tab-Keys

5. Tab key no longer works to cycle through controls

6. Tab key no longer works to cycle through controls

7. Enter Key must work as Tab Key do

8. Enter Key must work as Tab Key do

9. Tabs does not work in webbrowser control hosted by CAxWindow in CAxDialogImpl

10. Richtext edit box ocx problem with VC. (Tab is not working with control)

11. TAB not working when use WbeBrowser control in ATL Dialog

12. Tab is not working is OCX control--- Urgent....

 

 
Powered by phpBB® Forum Software