Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab control: how to make a page not clickable

Status
Not open for further replies.

halx

Programmer
Jun 5, 2002
35
FR
Hello,

I have a tab control in a form, with several pages (tabs).
Is it possible to make a tab not clickable (and grey)?
"pageName.enable = FALSE" still allows the user to click on the tab (but the commands inside are disabled)

Thanks

Alex
 
I havent tried this, but you could either set the tabname.visible=false (dont know if that is allowed) or in the onclick for the tab, create a bit of code that redirects them:

tab_onclick
if me.tab.enabled=false then
me.othercontrol.setfocus
end if

I did actually have this thing working...the naming convention for the tab is odd - I think you have to pass a reference for the clicked tab to the code, and check the .enabled against this, but I did get it working. My problem was where to logically re-direct them to...in the end I took it off, and told them that if all the controls for the tab were disabled, they could ignore it!

Ah...user training...the replacement for bulletproof coding!
 
Hi,

Thanks a lot for your ideas !

And please allow me to re-use this sentence:

"Ah...user training...the replacement for bulletproof coding!"

:eek:)

Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top