Profile Picture

How to Toggle NMouseOffsetCommand state on custom checkbox state change?

Posted By Niranjan Singh 12 Years Ago

How to Toggle NMouseOffsetCommand state on custom checkbox state...

Author
Message
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Niranjan,

Check out the other post - it comments on this one as wel...



Best Regards,
Nevron Support Team



Niranjan Singh
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 49, Visits: 179
///To enable MouseOffset command
nChartControl1.Controller.Selection.Add(nChartControl1.Charts[0]);
NMouseOffsetCommand cmd = commander.Commands.GetCommandFromId((int)ChartCommand.MouseOffset) as NMouseOffsetCommand;
cmd.Execute();


The above code snippet will enable the command but how can i disable on my custom checkbox state change.

If checkBox.Checked = true command will be true and when false then it's Enabled = false.



Any Help will be appreciated.



Similar Topics


Reading This Topic