OnDeviceLCDButtonHandlerEx

Declaration

Delphi

procedure OnDeviceLCDButtonHandlerEx(buttonEvent: Integer; lParam: Integer);

ActiveX

HRESULT _stdcall OnDeviceLCDButtonHandlerEx([in] long buttonEvent, [in] long lParam);

Description

This function should be only called from signaturedevice1.ocx


THIS IS NOT AN EVENT, THIS IS A HANDLER ROUTINE FOR THE EVENT OF StepOverSignatureDevice1.ocx !!!

Parameters


buttonEventsee list of possible button events
lParamson HID_BUTTON_JUMP_PAGE (210) ButtonCode used as destination Page to render and transfer by LCDImageExR to Smartphone back


Sample

C#
//  Event for DeviceButtons
SigDev.OnDeviceButtonEx += new AxStepOverSignatureDevice1.IStepOverSignatureDeviceEvents_OnDeviceButtonExEventHandler(SigDev_OnDeviceButtonEx);
 
private void SigDev_OnDeviceButtonEx(object sender, AxStepOverSignatureDevice1.IStepOverSignatureDeviceEvents_OnDeviceButtonExEvent e)
{
	//  forward Event to SignAPI so it can response in DocumentViewingMode
	SignAPIv4.OnDeviceLCDButtonHandlerEx(e.buttonEvent,e.lParam);

	int ID = Convert.ToInt32(e.buttonEvent >> 16);
	int Mode = Convert.ToInt32(e.buttonEvent & 0xFFFF);

	//  Check buttonID
	switch (ID)
	{
		case 206:
			//  OK Button, you can confirm Signature
			throw new NotImplementedException();
			break;

		case 207:
			//  OK Repeat, you can restart signing
			throw new NotImplementedException();
			break;

		case 208:
			//  OK Abort, you can abort signing
			throw new NotImplementedException();
			break;
	}
}