交互式甘特图VARCHART XGantt常见问题:如何禁用上下文菜单?

VARCHART XGantt是一个交互式的甘特图控件,其模块化的设计让您可以创建满足您和您的客户所需求的应用程序。(我们领先的甘特图控件VARCHART XGantt可用于.NET,ActiveX和ASP.NET应用程序。)除此之外,同时还具有一个稳定可靠的甘特图工具,在编写第一行代码之前,您就可以知道是否可以满足客户的需求。VARCHART XGantt可以快速、简单地集成到您的应用程序中,帮助您识别性能瓶颈、避免延迟以及高效利用资源,使复杂数据变得更加容易理解。使用VARCHART XGantt,您便具有一个可以生成清晰、灵活的甘特图的健壮开发工具。它使您实现“从概念到部署”的时间大大缩短,这样您就可以专注于其他方面的工作。

VARCHART XGantt正式版


问:如何禁用默认上下文菜单(ActiveX版)

答:您可以通过将returnStatus设置为vcRetStatNoPopup来禁用预定义的上下文菜单。

示例代码

'switching off the context menu of diagramPrivate Sub VcGantt1_OnDiagramRClick(ByVal x As Long, _ ByVal y As Long, returnStatus AsVariant) returnStatus = vcRetStatNoPopupEnd Sub'switching off the context menu of linksPrivate Sub VcGantt1_OnLinkRClickCltn(ByVal linkCltn As _ VcGanttLib.VcLinkCollection, _ ByVal x As Long, _ ByVal y As Long, _ returnStatus As Variant) returnStatus = vcRetStatNoPopupEnd Sub'switching off the context menu of nodesPrivate Sub VcGantt1_OnNodeRClick(ByVal node As VcGanttLib.VcNode, _ ByVal location AsVcGanttLib.LocationEnum, _ ByVal x As Long, ByVal y As Long, _ returnStatus As Variant) returnStatus = vcRetStatNoPopupEnd Sub 

问:如何禁用默认上下文菜单(.NET版)

答:您可以通过将returnStatus设置为vcRetStatNoPopup来禁用预定义的上下文菜单。

示例代码VB.NET

'switching off the context menu of diagramPrivate Sub VcGantt1_VcDiagramRightClicking(ByVal sender As Object,ByVal e As NETRONIC.XGantt.VcDiagramClickingEventArgs) HandlesVcGantt1.VcDiagramRightClicking e.ReturnStatus = VcReturnStatus.vcRetStatNoPopupEnd Sub'switching off the context menu of linksPrivate Sub VcGantt1_VcLinksRightClicking(ByVal sender As Object, ByVale As NETRONIC.XGantt.VcLinksClickingEventArgs) HandlesVcGantt1.VcLinksRightClicking e.ReturnStatus = VcReturnStatus.vcRetStatNoPopupEnd Sub'switching off the context menu of nodesPrivate Sub VcGantt1_VcNodeRightClicking(ByVal sender As Object, ByVal eAs NETRONIC.XGantt.VcNodeClickingEventArgs) HandlesVcGantt1.VcNodeRightClicking e.ReturnStatus = VcReturnStatus.vcRetStatNoPopupEnd Sub 

示例代码C#

'switching off the context menu of diagramPrivate Sub VcGantt1_VcDiagramRightClicking(ByVal sender As Object,ByVal e As NETRONIC.XGantt.VcDiagramClickingEventArgs) HandlesVcGantt1.VcDiagramRightClicking e.ReturnStatus = VcReturnStatus.vcRetStatNoPopupEnd Sub'switching off the context menu of linksPrivate Sub VcGantt1_VcLinksRightClicking(ByVal sender As Object, ByVale As NETRONIC.XGantt.VcLinksClickingEventArgs) HandlesVcGantt1.VcLinksRightClicking e.ReturnStatus = VcReturnStatus.vcRetStatNoPopupEnd Sub'switching off the context menu of nodesPrivate Sub VcGantt1_VcNodeRightClicking(ByVal sender As Object, ByVal eAs NETRONIC.XGantt.VcNodeClickingEventArgs) HandlesVcGantt1.VcNodeRightClicking e.ReturnStatus = VcReturnStatus.vcRetStatNoPopupEnd Sub 

相关内容推荐:

VARCHART XGantt 用户手册>>>

VARCHART XGantt 2019资源专题>>>


想要购买VARCHART XGantt正版授权,或了解更多产品信息请点击【咨询在线客服】

交互式甘特图VARCHART XGantt常见问题:如何禁用上下文菜单?

标签:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年1月11日
下一篇 2020年1月11日

相关推荐

发表回复

登录后才能评论