Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetUserControl - method of object TrendsView

Description:
Methods enables/disables the user control of the viewer, for example, it disables scrolling by dragging the mouse or the keyboard, zooming by dragging the mouse, etc. By default the full control of the viewer by the mouse and the keyboard is enabled.
Syntax:
SetUserControl(sOptions As String)
Calling:
oTView.SetUserControl sOptions
Parameters:
sOptions(String) Specifying string - enables/disables scrolling by dragging the mouse or the keyboard, zooming by dragging the mouse etc. The following strings can be concatenated by the separator ; into one string.
"zoomtime:xxx" - Setting the zoom control on the time axis:
"zoomtime:no" - disabling the control
"zoomtime:full" - enabling the control by the mouse and the keyboard
"zoomtime:mouse" - enabling the control only by the mouse
"zoomtime:key" - enabling the control only by the keyboard
"zoomvalue:xxx" - Setting the zoom control on the value axis. xxx holds the same meanings as zoomtime.
"zoom:xxx" - Setting the zoom control on the value and time axis. xxx holds the same meanings as zoomtime.
"scrolltime:xxx" - Setting the scroll control on the time axis. xxx holds the same meanings as zoomtime.
"scrollvalue:xxx" - Setting the scroll control on the value axis. xxx holds the same meanings as zoomtime.
"scroll:xxx" - Setting the scroll control on the value and time axis. xxx holds the same meanings as zoomtime.
"click:xxx" - Setting the controll by the mouse click on the area during the trend process (values are displayed only when Autoscroll is switched off). The font of displayed legends equals to the font of value scale legends, see ScaleValue.
"click:no" - do nothing
"click:showval(trend=near)" - show the nearest value of the nearest trend
"click:showval(trend=active)" - show the nearest value of the active trend
"click:showval(trend=all)" - show the nearest value of all trends
"click:showvalname(trend=near)" - show the nearest value and the name of the nearest trend
"click:showvalname(trend=active)" - show the nearest value and the name of the active trend
"click:showvalname(trend=all)" - show the nearest value and the name of all trends
"click:showvaltime(trend=near)" - show the nearest value and the time of the nearest trend
"click:showvaltime(trend=active)" - show the nearest value and the time of the active trend
"click:showvaltime(trend=all)" - show the nearest value and the time of all trends
"click:showvaltimename(trend=near)" - show the nearest value, time and the name of the nearest trend
"click:showvaltimename(trend=active)" - show the nearest value, time and the name of the active trend
"click:showvaltimename(trend=all)" - show the nearest value, time and the name of all trends
Note:
The keyboard control is not functional when using the viewer in the HTML page, there it is necessary to configure is by the HTML page events.
See also:
Example:
oTView.SetUserControl "zoom:no;scrolltime:mouse;click:showval(trend=near)"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice