PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating and configuring the Camera control to decode the bar codes
  • "Decoding a bar code" process
  • 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.
"Decoding a bar code" process
When the feature for decoding bar codes is enabled on the Video control, the "Decoding a bar code" process associated with the Camera control is used to process the bar code read via the control.
This process is run when the bar code is detected.
This process has the following format:
PROCEDURE DecodeBarCode(bc is BarCodes)
The information read can be retrieved by the BarCodes variable passed in parameter.
If this process returns:
Note
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment