Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter NineDialog Functions (continued)

TrackbarGetSelectRange Function

Overview

The TrackbarGetSelectRange function gets the current bounding size of a specified select region.

Syntax/Parameters

Syntax

int[] = TrackbarGetSelectRange ( int id );

Parameters

id

An int containing the control ID of a trackbar control.

Return Value

A two element int array containing the start and end range of the select area or an empty array on failure. Common errors include: ERROR_RANGE if id is an invalid control ID for the open dialog or ERROR_INVALID_HANDLE if no dialog is open.

Remarks

In order to use the select functions the TBS_ENABLESELRANGE style must be set for the control.

The array will contain two elements, 0th as the “start” key name and 1st as the “end” key name. Logical positions are zero based. If a select region has not been set, the values -1 -1 will be returned.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic