Jump to content
Software FX Community

disable title edit


User (Legacy)

Recommended Posts

You want to just eliminate that option or all menu options ? To eliminate

ALL context menus simply set ContextMenus = false.

To prevent only the title editing, you have to remove that specific

sub-command form the Titles menu (CFX_ID_CM_TITLE) and from the Background

menu (CFX_ID_CM_BACKGROUND). To do this is quite simple, two lines of code

will do it:

ChartFX1.Commands(CFX_ID_CM_TITLE).RemoveSubCommand (0)

ChartFX1.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6)

--

FP

Software FX Support

"Shailesh Patel" <shailesh@urnerbarry.com> wrote in message

news:u7ng8TtpCHA.2940@webserver1.softwarefx.com...

> Hi

> Programatically, I am setting top and bottom title of the chart.

> However, I do not want user to change or delete title by right click.

> i.e. When one right-clicks on title and select Properties.., there is a

text

> box with title value.

> I want this title textbox disabled.

> Any way to stop it?

>

> Thanks

>

> Shailesh

>

>

Link to comment
Share on other sites

Hi:

I have already done this. But, I don't want to remove "Properties.."

selection from right-click.

When you go in Properties.., then select Axis tab--,x-axis from dropdown,

then click Detail.. button on that tab,

select Lables tab. Here you can edit title which I do not want client to do

it.

The reason for this is if I include company name( e.g. copyright) on the

chart generated, client should not be able to edit or remove it.

Is there any way to achieve this?

Please let me know.

Thanks.

Shailesh

"Software FX Support" <support@softwarefx.com> wrote in message

news:U3rkFWupCHA.2868@webserver1.softwarefx.com...

> You want to just eliminate that option or all menu options ? To eliminate

> ALL context menus simply set ContextMenus = false.

>

> To prevent only the title editing, you have to remove that specific

> sub-command form the Titles menu (CFX_ID_CM_TITLE) and from the Background

> menu (CFX_ID_CM_BACKGROUND). To do this is quite simple, two lines of code

> will do it:

>

> ChartFX1.Commands(CFX_ID_CM_TITLE).RemoveSubCommand (0)

> ChartFX1.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6)

>

> --

> FP

> Software FX Support

> "Shailesh Patel" <shailesh@urnerbarry.com> wrote in message

> news:u7ng8TtpCHA.2940@webserver1.softwarefx.com...

> > Hi

> > Programatically, I am setting top and bottom title of the chart.

> > However, I do not want user to change or delete title by right click.

> > i.e. When one right-clicks on title and select Properties.., there is a

> text

> > box with title value.

> > I want this title textbox disabled.

> > Any way to stop it?

> >

> > Thanks

> >

> > Shailesh

> >

> >

>

>

ChartFXSmall.zip

Link to comment
Share on other sites

You can do this through the style property as follows:

ChartFX1.Style = ChartFX1.Style And Not CS_TITLES

--

FP

Software FX Support

"Shailesh Patel" <shailesh@urnerbarry.com> wrote in message

news:YJNtYk2pCHA.2684@webserver1.softwarefx.com...

> Hi:

> I have already done this. But, I don't want to remove "Properties.."

> selection from right-click.

>

> When you go in Properties.., then select Axis tab--,x-axis from dropdown,

> then click Detail.. button on that tab,

> select Lables tab. Here you can edit title which I do not want client to

do

> it.

> The reason for this is if I include company name( e.g. copyright) on the

> chart generated, client should not be able to edit or remove it.

> Is there any way to achieve this?

> Please let me know.

>

> Thanks.

>

> Shailesh

>

> "Software FX Support" <support@softwarefx.com> wrote in message

> news:U3rkFWupCHA.2868@webserver1.softwarefx.com...

> > You want to just eliminate that option or all menu options ? To

eliminate

> > ALL context menus simply set ContextMenus = false.

> >

> > To prevent only the title editing, you have to remove that specific

> > sub-command form the Titles menu (CFX_ID_CM_TITLE) and from the

Background

> > menu (CFX_ID_CM_BACKGROUND). To do this is quite simple, two lines of

code

> > will do it:

> >

> > ChartFX1.Commands(CFX_ID_CM_TITLE).RemoveSubCommand (0)

> > ChartFX1.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6)

> >

> > --

> > FP

> > Software FX Support

> > "Shailesh Patel" <shailesh@urnerbarry.com> wrote in message

> > news:u7ng8TtpCHA.2940@webserver1.softwarefx.com...

> > > Hi

> > > Programatically, I am setting top and bottom title of the chart.

> > > However, I do not want user to change or delete title by right click.

> > > i.e. When one right-clicks on title and select Properties.., there is

a

> > text

> > > box with title value.

> > > I want this title textbox disabled.

> > > Any way to stop it?

> > >

> > > Thanks

> > >

> > > Shailesh

> > >

> > >

> >

> >

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...