Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Sets the acceleration for an UpDown control.

 

Syntax

 

UpDown_SetAccell(hWnd, ctrlID, nAccels, PtrToFirstAccell)

 

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 ...

nAccels

Number

No

Number of UDACCEL accelerator structures passed by the pointer

PtrToFirstAccell

Number

No

Pointer to an UDACCEL accelerator structure or to the first element of an array of UDACCEL strucures.

 

Remarks

 

Restrictions

 

In case array of UDACCEL strucures, elements should be sorted in ascending order based on the nSec member.

 

See also

 

Examples

 

Dim uda() As UDACCEL

 

'---Set the increment at different time. Attention to set them in ascending order in the array

ReDim uda(4)

uda(1).nSec = 1   : uda(1).nInc = 5     '---First increment will last for the first 5 secs

uda(2).nSec = 5   : uda(2).nInc = 50    '---After 5 secs the increment will be by 50

uda(3).nSec = 10  : uda(3).nInc = 500   '---After 10 secs increment will be by 500

uda(4).nSec = 15  : uda(4).nInc = 1000  '---And last, after 15 secs we will increment by 1000

 

'---Now set it indicating how many and a pointer to the first element

UPDOWN_SetAccell CBHNDL%ID_UPDOWN, 4, VARPTR(uda(1))

        

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software