CreateNumericContainerOneValue method (Twain Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int CreateNumericContainerOneValue(pTW_CAPABILITY pCapability, int nType, unsigned uValue);

Delphi Syntax

Function CreateNumericContainerOneValue (pCapability:pTW_CAPABILITY; nType: L_INT; uValue: L_UINT32 ): L_INT;

Overview

Refer to How to Work with the Containers.

Remarks

Allocates the hContainer member of the TW_CAPABILITY structure to be type TW_ONEVALUE and fills it with the appropriate data.

When enumerating and getting capabilities, the toolkit takes care of creating the necessary TW_CAPABILITY containers. However, if the user wants to set a capability using the SetCapability method, he or she must declare a TW_CAPABILITY container of the appropriate type (TW_ARRAY, TW_ENUMERATION, TW_RANGE, or TW_ONEVALUE).

See Also

Elements:

FreeContainer method, CreateNumericContainerRange method, CreateNumericContainerEnum method, CreateNumericContainerArray method, LockContainer method, UnlockContainer method.

Topics:

TWAIN Functionality: Containers.