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
  • Event "Decoding a bar code"
  • Note
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 allows you to include the control and to decode bar codes in complex GUIs.
Creating and configuring the Camera control to decode the bar codes
  1. On the "Creation" pane, in the "Graphic controls" group, click "Camera".
  2. Click the position where the control will be created in the window. The control appears in creation mode.
  1. Display the description window of control ("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.
Event "Decoding a bar code"
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 BarCodes)
The information read can be retrieved by the BarCode variable passed in parameter.
If this event returns:
Note
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment