Controle Activex. Capturar eventos

Controle Activex. Capturar eventos

Postby syda » Wed Dec 20, 2006 2:40 pm

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
syda
 
Posts: 47
Joined: Sat Oct 08, 2005 9:12 pm

Postby Antonio Linares » Wed Dec 20, 2006 5:21 pm

Syda,

Please review samples\webexp.prg:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42150
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests