tab key, Win32, input focus and modeless dialog

  • Thread starter Thread starter Saurabh
  • Start date Start date
S

Saurabh

Hello All,

I have this combination where I set a win32 app window as a parent of my
dotnet form. As this form is a modeless form shown in the win32 app, the tab
key did not work. I made it work by adding a windows hook and checking for
the dialog message. Now the tab key vaguely works.

The form has a tabcontrol which has some tab pages having controls on it.
There are a couple of buttons like 'ok' and 'cancel' which are outside this
tab control. As far as the form is concerned, it has 3 children, one tab
control and 2 buttons saying ok and cancel. Now when I press the tab key I
can move the input focus between these 3 controls but the input focus does
not go inside the tab page. If I click on one of the controls within the
page to give the input focus to it, I can now use the tab key to navigate
between these controls but as soon as the focus comes to the tabpage header,
I cannot navigate back inside. Also if I press shift + tab from any control
within the page, the focus is transferred to one of the buttons.

Can anybody throw some light on this. Any help in this regard will be highly
appreciated!!

TIA,

--Saurabh
 
Back
Top