Board index » delphi » Disabling a Pagecontrol tab

Disabling a Pagecontrol tab

I would like to disable a pagecontrol tabs
so the user can not click and change tabs
when a process is running. However I do
not want to disable the current tabsheets
where the process is running is this possible
when i disable the pagecontrol the entire current tabsheet
goes dead.
Thanks for any help

--
Dean Hastas
Investrak Support

 

Re:Disabling a Pagecontrol tab


Quote
"dean hastas" <dhas...@yahoo.com> wrote:
> I would like to disable a pagecontrol tabs so the user can
> not click and change tabs when a process is running. However
> I do not want to disable the current tabsheets where the
> process is running is this possible when i disable the
> pagecontrol the entire current tabsheet goes dead.

Within a PageControl is one or more TabSheets. If you set the
Enabled property of the PageControl to false, all of the
TabSheets will be disabled. To disable individual TabSheets,
set each TabSheets Enabled property to false.

~ JD

Re:Disabling a Pagecontrol tab


Quote
In article <3eec0ce...@newsgroups.borland.com>, Dean hastas wrote:
> I would like to disable a pagecontrol tabs
> so the user can not click and change tabs
> when a process is running. However I do
> not want to disable the current tabsheets
> where the process is running is this possible
> when i disable the pagecontrol the entire current tabsheet
> goes dead.

TPagecontrol does not support that directly, but it can be faked with a
bit of work.

Search the newsgroup archives for PBPageControl, that should turn up a
pagecontrol descendent that will disable a tabsheets tab when you
disable the tabsheet. The user then cannot select this tab.

--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be

Re:Disabling a Pagecontrol tab


Quote
dean hastas wrote:
> I would like to disable a pagecontrol tabs
> so the user can not click and change tabs
> when a process is running. However I do
> not want to disable the current tabsheets
> where the process is running is this possible
> when i disable the pagecontrol the entire current tabsheet
> goes dead.

check ElPageControl (http://www.eldos.org/elpack/elpgctl.html) that has
this feature and many other original features.

--
Eugene Mayevski
Flexible cross-platform information exchange framework
http://www.msgconnect.com/

Other Threads