CreateNumericContainerRange method (Twain Control)
Builder Syntax |
int CreateNumericContainerRange(pTW_CAPABILITY pCapability, int nType, unsigned uMinValue, unsigned uMaxValue, unsigned uStepSize, unsigned uDefaultValue, unsigned uCurrentValue); |
Delphi Syntax |
Function CreateNumericContainerRange (pCapability: pTW_CAPABILITY; nType: L_INT; uMinValue: L_UINT32; uMaxValue: L_UINT32 ; uStepSize: L_UINT32 ; uDefaultValue: L_UINT32; uCurrentValue: 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_RANGE 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).
The step size is the amount of increase from one step to the next within the range uMinVal to uMaxVal. For example, if uMinValue = 0, uMaxValue = 100, and uStepSize = 2, then it will take 50 steps to increase from 0 to 100.
See Also
Elements: |
FreeContainer method, CreateNumericContainerOneValue method, CreateNumericContainerEnum method, CreateNumericContainerArray method, LockContainer method, UnlockContainer method. |
Topics: |