Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter NineDialog Functions (continued)

ScrollbarGetTrack Function

Overview

The ScrollbarGetTrack function returns the dragged mouse position proposed for the thumb track.

Syntax/Parameters

Syntax

int = ScrollbarGetTrack ( int id );

Parameters

id

An int containing the control ID of the scrollbar control.

Return Value

An int as a zero-based position or -1 on failure. Use the GetLastError function to retrieve a formatted error code. 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

This function should be used in response to a SB_THUMBTRACK message to get the proposed or dragged to position. The control can be updated as required using the ScrollbarSetPosition function.

Related Functions

Platform Support

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

Legato IDE, Legato Basic