views:

412

answers:

2

i'm using delphi 2009's TRibbon component. certain pages are not relevant depending on the application state. how can i hide a TRibbon page?

RibbonPage1.Visible:=false doesn't really hide the page...

is this maybe not allowed by the spec from microsoft?

thank you for you help! mp

+1  A: 

I do not think you can hide the individual ribbon pages, but you can hide or disable the individual RibbonGroups on the each page.

RibbonGroup1.Enabled := false; 
RibbonGroup2.Visible := false;

Microsoft Office disables any groups which are not relevant to the current state. Have a look at these articles from the documentation for more help.

stukelly
+1  A: 

You can't do this presently. It is the Tabs (not the Pages) that need to support visibility and they simply do not.

If you try to manipulate the Tabs themselves you will find the code is very dependent on maintaining the linkage between the pages and the tabs to the point of destroying your pages. I don't think there is a good workaround.

Register it as a bug in Quality Central. Support for "Context" aware tabs/pages is definitely something that should be supported. I imagine quite a few others would vote for it.

Ryan VanIderstine