Jump to content
Software FX Community

Re: Removing Chart Types From Gallery


User (Legacy)
 Share

Recommended Posts

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" dialog.

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 want

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.

Guest
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.

 Share

×
×
  • Create New...