Jump to content
Software FX Community

Re: Removing Chart Types From Gallery

Software FX

Recommended Posts

The problem is happening because, I think, the current type is not in the


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





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


> Try this:

> ICommandItemPtr gal;

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

> gal->RemoveSubCommand( 0 );


> This removes the first gallery option, LINES, from the gallery options on

> the toolbar, popup menus, and in the series tab in the "Properties"



> For some reason the above code changes the current gallery drop-down icon

> (the one shown on the button) to that of the file|open icon. Probably

> because the LINES option is default choice on startup.


> Does anyone know how to remove the gallery option altogether? I don't


> my user's to be able to change the gallery setting at all.


> -Ed Evans

> eevans@pacsim.com



> Bob Nims wrote in message ...

> >I need to be able to remove two chart types from the "Gallery". It's not

> >clear how to go about this so that both the popup menu and the toolbar

> >exclude these types as selections.

> >

> >Bob Nims

> >

> >



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...