Page 1 of 1

Disable Tabs in PageControl

Posted: Mon Nov 12, 2012 10:35 am
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

Re: Disable Tabs in PageControl

Posted: Mon Nov 12, 2012 12:26 pm
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

Re: Disable Tabs in PageControl

Posted: Tue Nov 13, 2012 1:22 am
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 7474 times

Re: Disable Tabs in PageControl

Posted: Tue Nov 13, 2012 9:56 am
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

Re: Disable Tabs in PageControl

Posted: Wed Nov 14, 2012 2:31 am
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

Re: Disable Tabs in PageControl

Posted: Wed Nov 14, 2012 8:30 am
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.

Re: Disable Tabs in PageControl

Posted: Wed Nov 14, 2012 8:34 am
by mikKummerfeld
tabOlap is the name of my page and I tried to set this to enable=false but it doesnt work

Re: Disable Tabs in PageControl

Posted: Wed Nov 14, 2012 8:54 am
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.

Re: Disable Tabs in PageControl

Posted: Wed Nov 14, 2012 9:06 am
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)

Re: Disable Tabs in PageControl

Posted: Wed Nov 14, 2012 9:57 am
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.