Funny Tab Behavior

Started by Mark Strickland, October 11, 2005, 10:07:15 PM

Previous topic - Next topic

Mark Strickland

I have a two level tabed form (tabs on a tab form).

If I click on the second level tabs with the mouse all goes well and the correct form displays and is active.  I have tried to implement a function key (that I catch in a CUSTOM event on a TextBox control) to change forms without a mouse click and I get a very strange behavior.

The code (below) will cause the correct form to display but the form that is active is the one I just came from.  If you move the mouse around on the currently showing form and click where a control exists on the other tab (form) you activate that control.  The control is painted and it accepts input eventhough the other form is displayed.  The other form is actually the active form but it cannot be seen except for the control that you just "moused" into.  

All of the controls in this code are on the FORMPATPROFILE form.


       FF_CONTROL_SHOWSTATE (HWND_FORMPATPROFILE, %SW_SHOW)
       FF_TABCONTROL_SETTABFOCUS (HWND_FORMPATTABS_TABPAT, 1)
       FF_TABCONTROL_SETSELECTEDTAB (HWND_FORMPATTABS_TABPAT, 1)
       FF_CONTROL_SETFOCUS (HWND_FORMPATPROFILE_BTNSUMDETAIL)


Without the SHOWSTATE the tab caption changes visably to the new tab but the form on that tab is not activiated.  The SHOWSTATE causes the form to paint but the other form is still active.

I am confused/using Windows (you pick)!!!!