OnDeviceLCDButtonHandler

Declaration

Delphi

procedure OnDeviceLCDButtonHandler(buttonEvent: Integer);

ActiveX

HRESULT _stdcall OnDeviceLCDButtonHandler([in] long buttonEvent);

Description

This function should be only called from signaturedevice1.ocx


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

Parameters

 

buttonEventsee list of posible button events

 

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.OnDeviceLCDButtonHandler(e.buttonEvent);

	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;
	}
}