Disable Tabs in PageControl

Got a problem you cannot solve? Try here.
Post Reply
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Disable Tabs in PageControl

Post by mikKummerfeld »

Hey Guys,

how can I disable a tab in your pagecontrol tab? I tried different ways, but not successful.

Thanks in advance
Heiko
MIK
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Disable Tabs in PageControl

Post by FrancescoT »

Dear Heiko,

I'm very sorry but I really don't understand what is the tab that you want to disable in InstallAware IDE.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Disable Tabs in PageControl

Post by mikKummerfeld »

I have 4 components and on one dialog a pagecontrol with a tab for each component with a few options for shortcuts

When a user selects only 2 components, I want to change 2 tabs to enable =false (grey, not clickable)
pagecontrol with tabs
pagecontrol with tabs
pagecontrol.png (25.46 KiB) Viewed 7470 times
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Disable Tabs in PageControl

Post by FrancescoT »

Dear Heiko,

unfortunately it is not possible to disable the page tab selection.

Alternatively you could force via "Dialog Behavior rules" the Enable property setting for a specific page using a variable .

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Disable Tabs in PageControl

Post by mikKummerfeld »

i tried

IF (c_tools.State = cbUnchecked) THEN tabOlap.Enabled := False;

c_tools is my checkbox (Checked if component was selected, UnChecked if not)

This does not work, tab is still enabled=true
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Disable Tabs in PageControl

Post by FrancescoT »

Dear Heiko,

you should try setting to FALSE the Enable property for that specific page under the PageControl.

Doing this all controls on the page will be disabled.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Disable Tabs in PageControl

Post by mikKummerfeld »

tabOlap is the name of my page and I tried to set this to enable=false but it doesnt work
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Disable Tabs in PageControl

Post by FrancescoT »

Dear Heiko,

Please use the attached project that demostrates how handle the Page Enable property and how to enable / disable controls as well.

Hope this helps you.

Regards.
Attachments
PageControl.rar
(1.54 MiB) Downloaded 393 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Disable Tabs in PageControl

Post by mikKummerfeld »

Thank you.
Yeah I tried to set every control within the page to enable=false (WORKS),
but I cant set one rule for all controls (making them GREY LOOKING)
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Disable Tabs in PageControl

Post by FrancescoT »

Dear Heiko,
but I cant set one rule for all controls (making them GREY LOOKING)
It works in that way because the property disables the page fuctionality and not the controls.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply