PureBasic Forum
http://forums.purebasic.com/english/

Barcode Generator
http://forums.purebasic.com/english/viewtopic.php?f=12&t=66727
Page 1 of 1

Author:  JHPJHP [ Sat Oct 08, 2016 7:26 am ]
Post subject:  Barcode Generator

-----------------------------------------------------------------------------------

Download Barcode Generator from My PureBasic Stuff

-----------------------------------------------------------------------------------

Tricks 'n' Tips
PureBasic Interface to OpenCV
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB File Embedding
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Stitch Images: SIFT
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Barcode Generator
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management

-----------------------------------------------------------------------------------

Registry is temporarily modified to access HTML5: FEATURE_BROWSER_EMULATION.

-----------------------------------------------------------------------------------

Retrieving a barcode will fail under the following conditions:
- no internet connection
- site hosting the barcode service is down or busy
- Bar Text not supported by the barcode
- Options not available to the barcode

NB*: Generating barcodes and Saving barcodes are independent of one another, each performing a call to the site hosting service.

-----------------------------------------------------------------------------------

Additional Information:
- Demo Barcode Writer
- Barcode API

Author:  JHPJHP [ Sun Oct 09, 2016 10:01 am ]
Post subject:  Re: Barcode Generator

JHPJHP wrote:
Either a generic message or "HTTP 400 Bad Request" error will show in the display area; I'll be replacing these with more uniform messages.

Updated:
- status and error messages
- code enhancements and bug fixes
- cosmetic changes

NB*: There may be additional messages that will be added in future updates.

Author:  JHPJHP [ Mon Oct 10, 2016 3:58 pm ]
Post subject:  Re: Barcode Generator

JHPJHP wrote:
With the number of available barcodes, a database of options and text samples will be added at a later date.

Updated:
- added a database of barcode options and text samples to assist with applying the correct settings
- increased the Scaling option to 8
- applied the Scaling option to both Generating and Saving of barcodes

--------------------------------------------------------------

Updated:
- fixed a bug in the Barcode dropdown
- added additional message and error handling
- applied an optimization to the include file barcode.pbi
- applied some minor cosmetic changes

At one point the range for Scale X / Y was set between 1 - 20, but I recently lowered this to 1 - 8 due to Service Temporarily Unavailable messages when set to large. The error message would persist for a few minutes even at the lowest setting, but would eventually clear and accept requests again.

Author:  JHPJHP [ Tue Oct 11, 2016 9:20 am ]
Post subject:  Re: Barcode Generator

Updated:
- added an OSX version
-- Barcode_OSX.pb, barcode_OSX.pbi

------------------------------------------------

Updated:
- fixed a bug in the OSX example

NB*: Update also includes minor changes to the Windows version.

Author:  RSBasic [ Tue Oct 11, 2016 10:07 am ]
Post subject:  Re: Barcode Generator

Nice, thank you. Image

Author:  wilbert [ Tue Oct 11, 2016 12:53 pm ]
Post subject:  Re: Barcode Generator

#PB_MessageRequester_Warning is unknown on PB 5.42 for OSX.
If I remove that, I can run the app but I keep getting "ERROR: Service Unavailable" when I try to preview a barcode. :?

Author:  JHPJHP [ Tue Oct 11, 2016 10:39 pm ]
Post subject:  Re: Barcode Generator

Hi RSBasic,

Thank you for your comments.

-----------------------------------------------

Hi wilbert,

Thank you for testing the OSX version.

Please download the latest update to see if it solves the problem.
- you may need to remove #PB_MessageRequester_Warning

-----------------------------------------------

Updated:
- increased Scale X / Y max value to 20
- switched from HTTP/1.1 to HTTP/1.0
- moved the ButtonGadget scripts from a BindEvent to the main loop
- various other changes not worth mentioning

Scaling a barcode too large will either return a Time Out or Service Unavailable message.

NB*: Different barcodes may have a different Scale X/ Y threshold; what will work for one barcode may fail with another.

Author:  wilbert [ Wed Oct 12, 2016 6:06 am ]
Post subject:  Re: Barcode Generator

JHPJHP wrote:
Please download the latest update to see if it solves the problem.

It's generating the barcodes now :)

Author:  JHPJHP [ Wed Oct 12, 2016 2:36 pm ]
Post subject:  Re: Barcode Generator

Hi wilbert,

Thank you for the confirmation.

I've added a small OSX update to remove the border around the barcode (WebGadget) DropDown:
Code:
CocoaMessage(0, CocoaMessage(0, GadgetID(#WebGadget1), "enclosingScrollView"), "setBorderType:", #NSNoBorder)

Author:  wilbert [ Wed Oct 12, 2016 3:23 pm ]
Post subject:  Re: Barcode Generator

JHPJHP wrote:
I've added a small OSX update to remove the border around the barcode (WebGadget) DropDown:
Code:
CocoaMessage(0, CocoaMessage(0, GadgetID(#WebGadget1), "enclosingScrollView"), "setBorderType:", #NSNoBorder)

Seems to work fine :)

Author:  JHPJHP [ Thu Apr 20, 2017 7:30 pm ]
Post subject:  Re: Barcode Generator

Hi wilbert,

Thank you for testing the code.

-----------------------------------------------------------------------

Updated:
- added a Linux version to the first post (tested in Ubuntu 17.04 :: 64 bit)
- applied some minor bug fixes to all packages

NB*: If you haven't already done so, you will need to install the Linux packages located in Setup/install_files.sh.

Author:  JHPJHP [ Tue May 28, 2019 4:58 am ]
Post subject:  Re: Barcode Generator

Updated:
- API URL has changed

Additional information can be found here.

----------------------------------------------------------

Updated (Windows):
- image sizes configured to use the built-in PureBasic DPI compiler option

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/