PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Creating and configuring the Camera control to decode the bar codes
  • Creating a Camera control
  • Configuring the Camera control
  • "Decoding a bar code" process
  • Remark
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
In iOS and Android, the bar codes can be decoded via the Camera control by BCCapture. This function opens a system window to decode the bar code. This system window cannot be customized.
Another solution consists in using the Camera control. This makes it possible to integrate the control and the bar code decoding into complex interfaces.
Creating and configuring the Camera control to decode the bar codes

Creating a Camera control

To create a Camera control:
  1. On the "Creation" pane, in the "Graphic controls" group, click "Camera".
  2. Click where you want to create the control. The control appears in the editor.

Configuring the Camera control

To configure the Camera control:
  1. Open the control description window ("Description" from the popup menu).
  2. In the "Details" tab, configure the control setting:
    • Type of decoding:
      • None: No decoding.
      • Bar code: Decoding without crosshair.
      • Bar codes with crosshairs: A crosshairs is used to view the area into which the bar code will be positioned.
      • Bar codes with crosshairs and blur: A crosshairs is used to view the area into which the bar code will be positioned and the sections located outside the crosshair are blurred.
    • Type of bar code: Type of bar code to decode. All the bar codes can be supported.
    • Size of crosshairs: Size of crosshair, expressed in percentage of visible area. This option is available only if a crosshair was requested.
"Decoding a bar code" process
When bar code decoding is enabled on the Video control, the event "Decoding a bar code" associated with the Camera control is used to process the bar code read via the control.
This event is run when the bar code is detected.
This event has the following format:
PROCEDURE DecodeBarCode(bc is BarCode)
The information read can be retrieved by the BarCode variable passed as parameter.
If this event returns:
Remark
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment