Datalogic .NET SDK
SetWedge (Method)
Syntax
public static bool SetWedge(WedgeType inputType, bool enable);
Description
Enables or disables the keyboard wedge feature for a particular type of input data.
Parameters Table
|
Type |
Parameter |
Description |
[in] |
WedgeType |
inputType |
Indicates the type of input data for which the wedge settings should be altered. |
[in] |
bool |
enable |
Specifies whether or not the wedge feature is enabled. If false, the feature is disabled, otherwise it is enabled. |
|
|
|
|
[return] |
bool |
|
TRUE is returned on success, otherwise FALSE is returned. |
[on error] |
FALSE |
If an invalid input type is specified, FALSE is returned. |
Example
private void btnWedge_Click(object sender, EventArgs e) { bool b = false; bool bIsEnabled = false; // “WedgeStatus” is a boolean global member.
if (WedgeStatus == false) { WedgeStatus = true; btnWedge.Text = "Disable Wedge"; } else { WedgeStatus = false; btnWedge.Text = "Enable Wedge"; }
b = Decode.SetWedge(WedgeType.Barcode, WedgeStatus); bIsEnabled = Decode.GetWedge(WedgeType.Barcode);
}
|
See Also
Copyright © Datalogic ADC. All Right Reserved