Events associated with Camera controls
WINDEV and WINDEV Mobile manage the following events by default:
|Initializing||Executed when the window is opened. (*)|
Click the control
|Run when clicking the control.|
This event allows you, for example, to take a picture or record a clip (and then stopping it) by clicking on the preview.
This event can only be and executed if the Camera control is in "Version-26-compatible" mode.
Zoom in or out
|Executed when the user zooms in or out in the Camera control|
Remark: This event is only available for Camera controls created with version 27 or later (controls with the "Version-26-compatible" option unchecked in the "General" tab of the description window).
Decoding a bar code
|Run when a bar code is detected by the camera. |
This event is only available if bar code decoding has been configured in the "Details" tab of the control description window.
This event has the following format:
PROCEDURE DecodeBarCode(bc is BarCode)
The information read can be retrieved by the BarCode
(*) By default, the "Initializing" event of each control is executed according to the order in which the controls were created in the window. To modify this order of execution:
- On the "Window" tab, in the "Order" group, click "Initialization".
- In the window that appears, use the arrows on the right to change the order in which the controls are initialized.
This page is also available for…