User (Legacy) Posted April 11, 2003 Report Share Posted April 11, 2003 Hi, How can I add my own commands to the pop-up menu (right-click) in C#? I can add to menu and toolbar, but not to the pop-up...I would be really happy if somebody could help me with this question! Have a nice weekend! Regards, Rolle NB. Using .NET and ChartFX 5.5 Link to comment Share on other sites More sharing options...
Software FX Posted April 11, 2003 Report Share Posted April 11, 2003 Adding commands to the right click menu is shown in our support site http://support.softwarefx.com/cfxie ASP Samples User Interface Customizing Context Menu Note that these samples are provided in ASP code (VB) but porting them to C# should not be too complex -- Regards, JC Software FX Support "Rolle" <saol@hotmail.com> wrote in message news:i71iE#DADHA.1400@webserver1.softwarefx.com... > Hi, > > How can I add my own commands to the pop-up menu (right-click) in C#? I can > add to menu and toolbar, but not to the pop-up...I would be really happy if > somebody could help me with this question! > > Have a nice weekend! > > Regards, > Rolle > > NB. > Using .NET and ChartFX 5.5 > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 12, 2003 Author Report Share Posted April 12, 2003 Thanks! That's just what I was looking for. Well, almost. =) I still need som help...I'm trying to add a custom command to the right-click. This should be a "marker" (or what ever it's called, like when You chose the Toolbar on right-click it get's marked/selected). I tried the CBIS_TWOSTATE, but that doesn't seem to be it? Also, when the user selects/de-selects this command on right-click, how can I know what happens? Do I have to track the state of the "marker" myself (I do get an event when the user choses the command)? How do I check to see if it's marked or not? Regards, Rolle "Software FX Support" <support@softwarefx.com> wrote in message news:k7QMNWEADHA.3076@webserver1.softwarefx.com... > Adding commands to the right click menu is shown in our support site > > http://support.softwarefx.com/cfxie > ASP Samples > User Interface > Customizing Context Menu > > Note that these samples are provided in ASP code (VB) but porting them to C# > should not be too complex > > -- > Regards, > > JC > Software FX Support > "Rolle" <saol@hotmail.com> wrote in message > news:i71iE#DADHA.1400@webserver1.softwarefx.com... > > Hi, > > > > How can I add my own commands to the pop-up menu (right-click) in C#? I > can > > add to menu and toolbar, but not to the pop-up...I would be really happy > if > > somebody could help me with this question! > > > > Have a nice weekend! > > > > Regards, > > Rolle > > > > NB. > > Using .NET and ChartFX 5.5 > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted April 14, 2003 Report Share Posted April 14, 2003 The following code creates a 2-State command for the Series Right-Click menu. <HTML> <HEAD> </HEAD> <BODY bgcolor="F0FFFF"> <!-- #include virtual="/Include/CfxIE.inc" --> <!-- #include virtual="/Include/CfxIEExtra.inc" --> <!-- #include virtual="/Include/CfxIECmds.inc" --> <% Set chart = Server.CreateObject("ChartFX.WebServer") ' Remove "Properties" command when the user right clicks a marker Set MarkerCmdList = chart.Commands(CFX_ID_CM_SERIES) chart.Commands.AddCommand(1) chart.Commands(1).Style = CBIS_TWOSTATE MarkerCmdList.InsertSubCommands 1,0 MarkerCmdList.SubCommandID(0) = 1 %> <br> <%=chart.GetHtmltag(800,600,"ActiveX")%> </BODY> </HTML> Notice the include files. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.