GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetInternalBehaviour Method
The ID of the behavior to control. Supported options are: - 1: FORWARD_ALL_MSG. Forces the control to translate and dispatch all messages sent to the data source manager. - 2: NEW_CALLBACK_MODEL. Enables the new callback model defined in the TWAIN 2.0 specifications. - 3: FORCE_PROXY_WINDOWS. Forces the control to use it's own proxy windows to intercept windows messages. - 4: NEW_CALLBACK_NO_HOOK. If NEW_CALLBACK_MODEL is activated, no message will be forwarded to the Data Source manager throught the DG_CONTROL/DAT_EVENT/MSG_PROCESSEVENT sequence.
True to enable the specified option, else False (default value for all options).





In This Topic
TwainSetInternalBehaviour Method (GdPictureImaging)
In This Topic
Changes a specific TWAIN handling behavior of the SDK. This method is experimental and should be used on GdPicture staff advice only!
Syntax
'Declaration
 
Public Sub TwainSetInternalBehaviour( _
   ByVal OptionID As Integer, _
   ByVal Enable As Boolean _
) 
public void TwainSetInternalBehaviour( 
   int OptionID,
   bool Enable
)
public procedure TwainSetInternalBehaviour( 
    OptionID: Integer;
    Enable: Boolean
); 
public function TwainSetInternalBehaviour( 
   OptionID : int,
   Enable : boolean
);
public: void TwainSetInternalBehaviour( 
   int OptionID,
   bool Enable
) 
public:
void TwainSetInternalBehaviour( 
   int OptionID,
   bool Enable
) 

Parameters

OptionID
The ID of the behavior to control. Supported options are: - 1: FORWARD_ALL_MSG. Forces the control to translate and dispatch all messages sent to the data source manager. - 2: NEW_CALLBACK_MODEL. Enables the new callback model defined in the TWAIN 2.0 specifications. - 3: FORCE_PROXY_WINDOWS. Forces the control to use it's own proxy windows to intercept windows messages. - 4: NEW_CALLBACK_NO_HOOK. If NEW_CALLBACK_MODEL is activated, no message will be forwarded to the Data Source manager throught the DG_CONTROL/DAT_EVENT/MSG_PROCESSEVENT sequence.
Enable
True to enable the specified option, else False (default value for all options).
See Also