Scripting > CxHmiFms > CxFmsHistoryGraphCtrl Object > CxFmsHistoryGraphCtrl Example

CxFmsHistoryGraphCtrl Example

Use the CxFmsHistoryGraphCtrl object to display and manipulate an ActiveX CygNet FMS History Graph Control in a CygNet Studio screen environment.

FMS History Graph Control Example

To see an example FMS History Graph control implemented in a pre-designed screen, open the FMS History Graph Ctrl.csf file in the CygNet\Clients\CStudio\Screens\Examples folder.

CygNet Studio Screen Script: FMS History Graph Ctrl.csf

Sub btnApply_EventClick()

Dim This : Set This = btnApply

FmsHistoryGraph.SessionNodeTag = editSessionNode.Text

FmsHistoryGraph.SessionBeginDate = editStartDate.Text

FmsHistoryGraph.SessionEndDate = editEndDate.Text

FmsHistoryGraph.PITDateTime = editPIT.Text

FmsHistoryGraph.UsePIT = checkUsePIT.Check

FmsHistoryGraph.Apply True

End Sub

 

Sub btnCancel_EventClick()

Dim This : Set This = btnCancel

FmsHistoryGraph.Cancel

End Sub

 

Sub checkUsePIT_EventChange()

Dim This : Set This = checkUsePIT

FmsHistoryGraph.UsePIT = this.Check

editPIT.Enable this.Check

End Sub

 

Sub TheView_EventInitialize()

Dim This : Set This = TheView

editSessionNode.Text = FmsHistoryGraph.SessionNodeTag

editStartDate.Text = FmsHistoryGraph.SessionBeginDate

editEndDate.Text = FmsHistoryGraph.SessionEndDate

 

checkUsePIT.Check = FmsHistoryGraph.UsePIT

editPIT.Text = FmsHistoryGraph.PITDateTime

editPIT.Enable = FmsHistoryGraph.UsePIT

End Sub

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.