With GuiXT Controls it is possible to display a windows form as a popup. In this tutorial we will display a barcode (optical machine-readable representation of data) within a popup. Step no.1: Choose
an appropriate barcode generator. Step no. 2: Create a new windows
forms application and add these elements: Step no. 3: Implement a function that generates and displays the barcode:
|
Step no. 4:
Create a GuiXT script and an InputScript:
In this tutorial we use our own
inputfield containing the string which will be converted to a barcode. In a more
common case the string might represent a material number.
// Display a barcode
inputfield
(15,1)
"Display barcode:"
(15,15)
size="25"
name="barcodetext"
default="123456789012"
-required
Set
text[barcode_types]
"=--- Auswahl Barcode-Typ ---;upca=UPC-A;code128=Code
128;ean13=EAN-13;"
dropdownlist
(15,43)
"barcode_types"
refer="V[barcode_type]"
width="25"
pushbutton
(15,70)
"ok"
process="display_barcode.txt"
inputfield
(16,1)
"(Coordinates:)"
(16,18)
size="5"
name="barcode_position_x"
default="0"
-numerical
inputfield
(16,25)
size="5"
name="barcode_position_y"
-nolabel
default="0"
-numerical
display_barcode.txt:
callvb returncode =
tutorials.barcodeviewer.create_barcode
"&V[barcodetext]"
"&V[barcode_position_x]"
"&V[barcode_position_y]"
"&V[barcode_type]"
if
not
V[returncode=0]
message
"&V[returncode]"
title="Return"
endif
return
Result: