disable tab-control still allows entry

Started by Paul D. Elliott, June 28, 2007, 02:58:14 PM

Previous topic - Next topic

Paul D. Elliott

In my program, the main form uses a tab-control to show the various other screens ( switching is
totally under program control ). 1 of the tabs has a tab-control with various updatable fields and
some buttons  to allow for changing/adding/deleting/cancelling maintenance. When the main buttons
are active, I disable the tab-control with FF_Control_Disable ( as there is no reason for the user
to be doing anything in the updatable fields ). This prevents the user from switching tabs but
still permits the user to enter into the fields of whichever tab is showing. Do I also have to disable
the form which is being shown on the tab-control? Or would it be easier to just add a blank tab
and show it before disabling the tab-control?

Thanks.

TechSupport

Disabling a tab does not automatically disable any child form of the tab. You will need to disable the controls on the form.

Paul D. Elliott

Ok. But with around 20 or so controls / tab and 4 tabs, it looks like it'll be much easier ( on me )
to just add a blank tab ( maybe with a friendly message ) and switch to that right before disabling
the tab-control. At least, disabling the tab-control will prevent them from switching to another tab.

Thanks.