Jump to content
Software FX Community

restricting chart type context menu


User (Legacy)

Recommended Posts

OK, how do I find out which command id coorespond to which gallery? In your 

example, "2" corresponds to "Area". Is there a lookup table somewhere?

Thanks.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:SVGws%23IBFHA.2412@webserver3.softwarefx.com...

> Yes.

>

> The Gallery is a command that has sub-commands inside (each gallery),

> these

> can be removed using the Commands API.

>

> For example:

>

> chart1.Commands[(int) CommandID.Gallery].RemoveSubCommand(2);

>

>

>

> Will remove the third gallery (Area).

>

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

In the order in which they appear from left to right and then down to the 

next line, like the natural flow of (western) text.

To make your code work regardless of future changes in this order you can

do:

int index = chart1.Commands[(int) CommandID.Gallery].FindSubCommandID((int)

CommandID.Area);

if (index >= 0)

chart1.Commands[(int) CommandID.Gallery].RemoveSubCommand(index);

--

FP

Software FX

Link to comment
Share on other sites

thanks.

- harry

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:GvdJzHVBFHA.2412@webserver3.softwarefx.com...

> In the order in which they appear from left to right and then down to the

> next line, like the natural flow of (western) text.

>

> To make your code work regardless of future changes in this order you can

> do:

>

>

> int index = chart1.Commands[(int)

> CommandID.Gallery].FindSubCommandID((int)

> CommandID.Area);

>

> if (index >= 0)

>

> chart1.Commands[(int) CommandID.Gallery].RemoveSubCommand(index);

>

>

>

>

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...