Jump to content
Software FX Community

Re: Removing Chart Types From Gallery


Software FX

Recommended Posts

Doing:

ChartFX1.Style = ChartFX1.Style And Not CS_GALLERY

Will disable the Gallery option from every place where it appears.

--

Frank

SFX

"Edward Evans" <eevans@pacsim.com> wrote in message

news:CluUZcWNAHA.1428@sfxserver.softwarefx.com...

> Is there a way to remove the gallery command from the "Series" tab in the

> properties dialog? If not, one possible workaround I discovered is this:

> Chances are you're going to be using at least _one_ type of chart in the

> gallery, removing every other chart type will keep the user from selecting

> an incorrect one, since the only option is the correct choice.

>

> Francisco Padron wrote in message ...

> <snip>

> >You can remove the Gallery command from the Menus and Toolbar as follows:

> >

> >To remove it form the right-click menu for instance:

> >

> >gal = m_pChartFX->GetCommands()->GetItem( CFX_ID_CM_BACKGROUND);

> >gal->RemoveSubCommand( 4 ); // Fourth Item in the menu

> >

> >To remove it from the ToolBar:

> >

> >m_pChartFX->ToolBarObj->RemoveItems(1,4); // Fourth Item in the toolbar

> >(coincidence!)

> >

> >--

> >

> >Frank

> >SFX

>

> <snip>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...