Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > Trackbar control >

TrackBar_SetThumbLength

Previous pageReturn to chapter overviewNext page

 

Description

 

Sets the length of the slider in a trackbar.

 

Syntax

 

n = TrackBar_SetThumbLength(hWnd, ctrlID, PixelLen)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

PixelLen

Number

No

Length, in pixels, of the slider.

 

Remarks

 

Restrictions

 

This message is ignored if the trackbar does not have the %TBS_FIXEDLENGTH style.

 

See also

 

Examples