Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter NineDialog Functions (continued)

TrackbarGetSliderRect Function

Overview

The TrackbarGetSliderRect function retrieves the size and position of the bounding rectangle for a trackbar's slider.

Syntax/Parameters

Syntax

int[] = TrackbarGetSliderRect ( int id );

Parameters

id

An int containing the control ID of a trackbar control.

Return Value

A four element int array containing the positions of the rectangle area surrounding the slider 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

Array members and key names are as follows: 0 – “top”, 1 – “right”, 2 – “bottom” and 3 – “left”.

As the slider is moved, the rectangle positions will change.

The coordinates are in pixels and relative to the control’s client area.

Related Functions

Platform Support

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

Legato IDE, Legato Basic