Controle Activex. Capturar eventos

Post Reply
syda
Posts: 47
Joined: Sat Oct 08, 2005 9:12 pm

Controle Activex. Capturar eventos

Post by syda »

Como capturar eventos activex em Fivewin?

ImageAcquired
This event is fired whenever a fingerprint image is acquired from a plugged fingerprint reader.

Prerequisites The capture module must have been previously initialized.
At least one fingerprint reader started capturing fingerprint images.

Parameters
[in] idSensor The ID of the fingerprint reader that raised the event.
[in] width Fingerprint image width in pixels.
[in] height Fingerprint image height in pixels.
[in] rawImage The raw grayscale fingerprint image.
[in] res Fingerprint image resolution in DPI.

DECLARATION C#
void [Control Name]_ImageAcquired(object sender, [Library Name]._IGrFingerXCtrlEvents_ImageAcquireEvent e)

SAMPLE C#
private void axGrFingerXCtrl1_ImageAcquired(object sender, AxGrFingerXLib._IGrFingerXCtrlEvents_ImageAcquiredEvent e)
{
// Copying acquired image
_raw.img = e.rawImage;
_raw.height = (int) e.height;
_raw.width = (int) e.width;
_raw.Res = e.res;

// Signaling that an Image Event occurred.
WriteLog("Sensor: " + e.idSensor + ". Event: Image captured.");

// display the fingerprint image
PrintBiometricDisplay(false, GRConstants.GR_DEFAULT_CONTEXT);

}
FWH 7.04 + xHarbour.com xBuild 0.99.71
Resource Builder 2.6 (thanks to Rene for the indication)
Windows XP Professional
Manaus - Amazonas - Brasil
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Syda,

Please review samples\webexp.prg:

oActiveX:bOnEvent = { | event, aParams, pParams | ... your code ... }
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply