The PureBasic 5.0 Form Designer - A Quick Video Tutorial

You need some new stunning features ? Tell us here.
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by TI-994A »

Hello everyone. I was playing around with the CamStudio screen recorder, and thought that I'd put together a quick guide to the new Form Designer. It's far from comprehensive, but through a simple working example, it outlines the basic concepts of how the designer-generated code works in relation to the required events file. Here's the link:

The PureBasic 5.0 Form Designer - A Quick Tutorial (available in HD)

Please feel free to comment, either here or on YouTube. Hope it'll be useful.


PS: There's also an updated video tutorial here:

> PureBasic Form Designer Tutorial 2022
Last edited by TI-994A on Thu Apr 20, 2023 12:30 pm, edited 1 time in total.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by Polo »

Wow it's very good and shows well how to use the designer, thanks!
The issue with empty image gadget in the code generation is fixed for next version I think :)
Fred
Administrator
Administrator
Posts: 16617
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by Fred »

Nice to watch !

About the Form use, you should organize your files like this:

- have one .pbf per form, as you have. No main event loop inside (or you can only create one form !)
- have one event file, as you have (or store the event in the main file for the small programs)
- have one main file, with the main event loop in it, calling the 'sub' event loop of each forms.
nospam
Enthusiast
Enthusiast
Posts: 130
Joined: Mon Nov 12, 2012 9:15 am

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by nospam »

Excellent work.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by IdeasVacuum »

....I like the music too!
Image
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by TI-994A »

Thank you everyone for your kind comments.
Polo wrote:Wow it's very good and shows well how to use the designer, thanks!
Fred wrote:Nice to watch !
Hello Fred and Polo. To get these great compliments from the top guys of PureBasic and the Form Designer really makes my day! I thank you sincerely. :D
Fred wrote:About the Form use, you should organize your files like this:

- have one .pbf per form, as you have. No main event loop inside (or you can only create one form !)
- have one event file, as you have (or store the event in the main file for the small programs)
- have one main file, with the main event loop in it, calling the 'sub' event loop of each forms.
Since I usually code manually, I didn't see the third point. So, the best model would be to pair all the form files (*.pbf) with their corresponding events files (*.pb), and code a separate main file (*.pb) to handle them all; very clean and modular.

Thank you.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by Polo »

TI-994A wrote:So, the best model would be to pair all the form files (*.pbf) with their corresponding events files (*.pb), and code a separate main file (*.pb) to handle them all; very clean and modular.
I think you're the one who explained it best! :)
User avatar
captain_skank
Enthusiast
Enthusiast
Posts: 636
Joined: Fri Oct 06, 2006 3:57 pm
Location: England

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by captain_skank »

Excellent video tutorial TI-994A.

Have to say I never thought of using the files in this way - I normaly just cut and paste code into my own programs, but doing it this way would make editing much cleaner.

Thanks
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by Didelphodon »

Nice one! :D
Go, tell it on the mountains.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by Didelphodon »

May I ask which recording software and tools you used for this video?
Go, tell it on the mountains.
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by TI-994A »

Hello everyone. I've compiled an updated video tutorial on the Form Designer.

PureBasic Form Designer Tutorial 2022

As always, please feel free to comment, either here or on YouTube.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
radsoft
User
User
Posts: 25
Joined: Mon Sep 11, 2017 2:03 am
Location: New Zealand

Re: The PureBasic 5.0 Form Designer - A Quick Video Tutorial

Post by radsoft »

Thank you TI-994A for your video tutorial which I worked through, it helped a lot. I'll go through it some more times and looking forward to advancing in PureBasic.
Post Reply