Managing a TabPanel?

Greetings -

This is a Xojo 2019 R3.2 question. I have a TabPanel which I would like to lock in Panel 0 until certain conditions are met AND I would like to use the controls on Panel 0 while it is locked. This seems to be just the opposite to what TabPanel.enabled = false does; that seems to disable the controls but allow choosing other tabs.

I seem to remember, many eons past, of locking by resetting the SelectedPanelIndex (it had a different name, then) to zero any time the user tried to change it, until the conditions for full use are met. Is there a way better than messing with the SelectedPanelIndex?

Many thanks
Jim Wagner
Oregon Research Electronics

That’s the way I do it. Messing with SelectedPanelIndex also allows me to “disable” certain tabs until some criteria is met.

Thanks

Jim