Help / Developing an application or site / Controls, windows and pages / Controls: Available types / Camera control
  • Default events
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Default events
WINDEV and WINDEV Mobile manage the following events by default:
EventRuntime condition
InitializingExecuted when the window is opened. (*)
AndroidiPhone/iPad 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.
AndroidiPhone/iPad 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).
AndroidiPhone/iPad 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 variable.

(*) 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:
  1. On the "Window" tab, in the "Order" group, click "Initialization".
  2. In the window that appears, use the arrows on the right to change the order in which the controls are initialized.
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 06/03/2022

Send a report | Local help