示例:Scroll 和 ScrollMechanism 属性
本示例用于将图表设置为允许在运行时自动滚动,并显示和隐藏图表上的滚动机制(VCR 样式的按钮)。
Private Sub ToggleDisplayScrollMechanism() If Trend1.DisplayScrollMechanism = True Then ' The scroll mechanism is shown, so hide it. Trend1.DisplayScrollMechanism = False If Trend1.Scroll = False Then ' Apparently, the operator used the VCR buttons, ' which stops scrolling. ' Start scrolling back up. Trend1.Scroll = True End If Else ' The scroll mechanism is hidden, so show it. Trend1.DisplayScrollMechanism = True End If End Sub
提供反馈