It is currently Thu Nov 21, 2019 11:34 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Barcode Generator
PostPosted: Sat Oct 08, 2016 7:26 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
-----------------------------------------------------------------------------------

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

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri Oct 11, 2019 1:13 am, edited 46 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Sun Oct 09, 2016 10:01 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Mon Oct 10, 2016 3:58 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Tue Oct 11, 2016 9:20 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Tue Oct 11, 2016 10:07 am 
Offline
Moderator
Moderator
User avatar

Joined: Thu Dec 31, 2009 11:05 pm
Posts: 1106
Location: Germany::Berlin()
Nice, thank you. Image

_________________
ImageImageImageImage Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Tue Oct 11, 2016 12:53 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3519
Location: Netherlands
#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. :?

_________________
macOS 10.15 Catalina, PB 5.71 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Tue Oct 11, 2016 10:39 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Wed Oct 12, 2016 6:06 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3519
Location: Netherlands
JHPJHP wrote:
Please download the latest update to see if it solves the problem.

It's generating the barcodes now :)

_________________
macOS 10.15 Catalina, PB 5.71 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Wed Oct 12, 2016 2:36 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
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)

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Wed Oct 12, 2016 3:23 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3519
Location: Netherlands
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 :)

_________________
macOS 10.15 Catalina, PB 5.71 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Thu Apr 20, 2017 7:30 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Barcode Generator
PostPosted: Tue May 28, 2019 4:58 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1593
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

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye