VisualNEO Win Plugin Manual

neoBarcode — Interactive QR Code & Barcode Generator Plugin

Plugin ID:com.visualneo.neobarcode
Suite:VisualNEO UI & Data Suite (Commercial)
Publisher:SinLios / VisualNEO Win
Category:Utility / Barcode

1. Overview & Purpose

The neoBarcode plugin provides vector-rendered QR Code and Barcode generation capabilities in VisualNEO Win applications.

It supports 1D and 2D barcode symbologies (qrcode, code128, code39), customizable foreground/background colors, human-readable text labels, and image export to disk (BMP, PNG).


2. Custom Control Properties

Control: neoBarcode Display (neo-barcode-display)

Property NameTypeDefault ValueDescription
textstring"https://visualneo.com"Content text or URL encoded in the barcode.
barcodeTypestring"qrcode"Symbology format ("qrcode", "code128", "code39").
fgColorstring"#000000"Foreground bar/module color (#RRGGBB).
bgColorstring"#FFFFFF"Background canvas fill color (#RRGGBB).
showTextbooleantrueDisplay human-readable text label below 1D barcodes.

3. Actions & Commands Reference

neoBarcodeSetText

Updates the encoded content text or URL of a neoBarcodeDisplay control.

  • Command Syntax: neoBarcodeSetText "ObjectName" "ContentText"
  • Parameters:
  • ObjectName (string): Target control name.
  • ContentText (string): Data string to encode.

neoBarcodeGetText

Retrieves the active encoded text of a target barcode control into [neoBarcodeResult] (and optionally into a specified variable).

  • Command Syntax: neoBarcodeGetText "ObjectName" "[ResultVar]"
  • Parameters:
  • ObjectName (string): Target control name.
  • ResultVar (string, optional): Destination variable (e.g. "[UrlText]").

neoBarcodeSetType

Changes the active barcode symbology type.

  • Command Syntax: neoBarcodeSetType "ObjectName" "SymbologyType"
  • Parameters:
  • ObjectName (string): Target control name.
  • SymbologyType (string): "qrcode", "code128", or "code39".

neoBarcodeGetType

Gets the current symbology format into [neoBarcodeResult] (and optionally into a specified variable).

  • Command Syntax: neoBarcodeGetType "ObjectName" "[ResultVar]"
  • Parameters:
  • ObjectName (string): Target control name.
  • ResultVar (string, optional): Destination variable (e.g. "[CurrentType]").

neoBarcodeSetColors

Updates foreground and background colors of a barcode control.

  • Command Syntax: neoBarcodeSetColors "ObjectName" "FgColorHex" "BgColorHex"
  • Parameters:
  • ObjectName (string): Target control.
  • FgColorHex (string): Foreground color #RRGGBB.
  • BgColorHex (string): Background color #RRGGBB.

neoBarcodeSaveImage

Saves the rendered barcode control directly to a image file on disk.

  • Command Syntax: neoBarcodeSaveImage "ObjectName" "FilePath" "Width" "Height"
  • Parameters:
  • ObjectName (string): Target control name.
  • FilePath (string): Destination path (.png or .bmp).
  • Width (integer): Output image width in pixels.
  • Height (integer): Output image height in pixels.

neoBarcodeGenerate

Generates a QR Code or Barcode image file directly without requiring a control on the page.

  • Command Syntax: neoBarcodeGenerate "Text" "Type" "FilePath" "Width" "Height" "FgColor" "BgColor"
  • Parameters:
  • Text (string): Data string.
  • Type (string): "qrcode", "code128", or "code39".
  • FilePath (string): Output path.
  • Width (integer): Image width.
  • Height (integer): Image height.
  • FgColor (string, optional): Foreground color.
  • BgColor (string, optional): Background color.

4. Events Reference

  • change: Triggered when the barcode content text or symbology format changes.

5. Practical Usage Example (VisualNEO Win Script)

TEXT
. --- Generate a QR code for a website URL ---
neoBarcodeSetType "BarcodeDisplay1" "qrcode"
neoBarcodeSetText "BarcodeDisplay1" "https://visualneo.com"
neoBarcodeSetColors "BarcodeDisplay1" "#0078D4" "#FFFFFF"

. --- Save rendered QR code to image ---
neoBarcodeSaveImage "BarcodeDisplay1" "[PubDir]images/qrcode.png" "300" "300"

. --- Generate Code128 barcode directly in background ---
neoBarcodeGenerate "PRODUCT-12345" "code128" "[PubDir]images/label.png" "400" "150" "#000000" "#FFFFFF"