Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter NineDialog Functions (continued)

TrackbarGetChannelRect Function

Overview

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

Syntax/Parameters

Syntax

int[] = TrackbarGetChannelRect ( 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 channel 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”.

The channel is the area over which the slider moves. It contains the highlight when a range is selected.

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