REAL basic - Barcodes in projects

EnterpriseTo use this functionality you require the Enterprise Edition

How to add a barcode to a REAL basic project (Win32 only)

You can use ActiveBarcode in REAL basic like any other control (e.g. like a button) when compiling for Win32 platform. First you have to add the ActiveBarcode control into the project.

Adding ActiveBarcode to the project

Go to the "Project" menu, select "Add" and then "ActiveX component":

Screenshot

A dialog with containing a list of the available controls appears. Select "ActiveBarcode" and activate it here. Then click OK.

Screenshot

Now ActiveBarcode is integrated into the project.

Use ActiveBarcode (A simple example)

To place the ActiveBarcode control on a Window, open the "Project Controls list". Select "ActiveBarcode" in that list.

Screenshot

You add the ActiveBarcode control to a window as any build-in control. Drag it to the window. Also add an "Edit Field" to the window. We use this in our example.

Screenshot

You set up the default values for the barcode inside the "Window1.Open" event. Add the following code to this event:

Screenshot

Next we will use the event "Window1.EditField1.TextChange" to change the barcodes content every time the "Edit field" changes. Add the following code to this event:

Screenshot

That's it. Now launch this example application:

Screenshot

If you change the content of the "Edit field" in the running application, the barcode will encode this.



Read more descriptions of how to add barcodes to standard applications (e.g. Office, Excel, Word, Access forms, Access reports, PowerPoint, OpenOffice.org, Lotus Notes, Publisher, Freelance, Freehand MX, Image Editors, WordPad, etc.)

rss twitter Bookmark and Share
| Home | Shop | Email | Datenschutz | Sitemap | Print preview | Version 5.58 | © Lars Schenk & Frank Horn

All trademarks and product names mentioned are the property of their respective owners.