原創(chuàng)|其它|編輯:郝浩|2013-01-22 15:17:37.000|閱讀 883 次
概述:不知道你是否在甘特圖開發(fā)和使用中遇到了困難呢?本文為你總結(jié)了六個(gè)甘特圖開發(fā)和使用過程中經(jīng)常遇到的問題,希望對(duì)你有所幫助。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
甘特圖是一種線條圖,一般用橫軸表示時(shí)間,縱軸表示活動(dòng),線條表示在計(jì)劃期間活動(dòng)的安排以及完成情況。不知道你是否也在甘特圖開發(fā)和使用中遇到了困難呢?本文為你總結(jié)了六個(gè)甘特圖開發(fā)和使用過程中的常見問題,希望對(duì)你有所幫助。
1、如何在Windows SharePoint中使用VARCHART XGantt?
答:在 ASP.NET網(wǎng)頁(yè)中提供一個(gè)可實(shí)現(xiàn)所需甘特圖功能的Web應(yīng)用程序。Web部件元素PageViewer在Windows SharePoint中顯示您的應(yīng)用程序。你只需要傳遞一個(gè)連接到您的網(wǎng)頁(yè)中。然后你就可以在Windows SharePoint中使用PageViewer了。你可以將你的應(yīng)用程序放在SharePoint服務(wù)器上或任何其他Web服務(wù)器上。
2、如何通過點(diǎn)擊方式將Bar移到Gantt Graph甘特圖中?
答:甘特圖中的OnNodeLClick事件同時(shí)捕捉表或圖中的節(jié)點(diǎn)和信息。點(diǎn)擊表時(shí),會(huì)檢索節(jié)點(diǎn)相關(guān)的日期,并通過ScrollToDate 方法傳遞到VARCHART XGantt對(duì)象中。
代碼示例:
Private Sub VcGantt1_OnNodeLClick (ByVal node As VcGanttLib.VcNode, ByVal location As VcGanttLib.LocationEnum, ByVal x As Long, ByVal y As Long, returnStatus As Variant) Dim myDataDef As VcDataDefinition Dim myDataDefTable As VcDataDefinitionTable Dim myDataField As VcDefinitionField Dim myIndex As Integer If location = vcInTable Then // if the index of the field "Start" is unknown Set myDataDef = VcGantt1.DataDefinition Set myDataDefTable = myDataDef.DefinitionTable(vcMaindata) Set myDataField = myDataDefTable.FieldByName("Start") myIndex = myDataField.ID VcGantt1.ScrollToDate node.DataField(myIndex), vcLeftAligned, 2 End If End Sub
答:在甘特圖軟件中,將returnStatus設(shè)置為cRetStatNoPopup,可以防止甘特圖中彈出上下文菜單中。
下面的示例代碼適用于ActiveX版本和VB6:
//switching off the context menu of the diagram Private Sub VcGantt1_OnDiagramRClick (ByVal x As Long, ByVal y As Long, returnStatus As Variant) returnStatus = vcRetStatNoPopup End Sub //switching off the context menu of links Private Sub VcGantt1_OnLinkRClickCltn (ByVal linkCltn As VcGanttLib.VcLinkCollection, ByVal x As Long, ByVal y As Long, returnStatus As Variant) returnStatus = vcRetStatNoPopup End Sub //switching off the context menu of nodes Private Sub VcGantt1_OnNodeRClick (ByVal node As VcGanttLib.VcNode, ByVal location As VcGanttLib.LocationEnum, ByVal x As Long, ByVal y As Long, returnStatus As Variant) returnStatus = vcRetStatNoPopup End Sub
答:VARCHART ActiveX中無(wú)法打印或者無(wú)法設(shè)置打印機(jī)時(shí),請(qǐng)檢查vcprct32.dll文件是否存在,并且,確認(rèn)是否設(shè)置了Windows默認(rèn)打印機(jī)。
5、請(qǐng)問DUNDAS里的甘特圖只能提供展示功能?它都有哪些功能呢?
答:Dundas中的甘特圖只能實(shí)現(xiàn)基本的數(shù)據(jù)展現(xiàn),并不支持?jǐn)?shù)據(jù)的交互,如拖拽等功能,如需使用甘特圖的交互性的功能,推薦您使用GTP.NET。
6、甘特圖控件XGantt如何自定義屬性對(duì)話框和右鍵菜單?
答:甘特圖控件本身不支持,只能通過自建彈出窗體定義其內(nèi)容和方法。
如果以上問題依然不能解決你的甘特圖選型問題,建議你到慧都控件問答免費(fèi)咨詢控件專家。
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)