GUI Basics

Blitz3D Forums/Blitz3D Beginners Area/GUI Basics

Mental Image(Posted 2003) [#1]
Hi,

anyone know of a decent beginners tutorial to using the GUI commands in BlitzPlus! ?

Oh how I wish we had printed manuals with tutorials...

Ta.


soja(Posted 2003) [#2]
What's wrong with Chapter 2 of the BlitzPlus User's Guide (included with BlitzPlus)?


RiK(Posted 2003) [#3]
Well it is a bit (lot) thin on the ground isnt it....

Although it's not hard one you know what you are doing, the GUI stuff really is crying our for better docs and more examples.

I didn't start making progress at all until I started using a seperate form editor to build the bulk of the code (using BlitzVision btw, which is excellent).


Hansie(Posted 2003) [#4]
@Mental Image

Having BlitzPlus myself, but never used the GUI stuff, take a look at www.blitzcoder.com and see if any stuff is available there.


CS_TBL(Posted 2003) [#5]
You learn it by doing it.

Don't expect the manual to explain you how you can do your own photoshop app, however, I learnt B+ by just doing an app with a real purpose.. that sortof forced me to take it seriously.

The only thing I advice is to develope your own style. And try to make a good looking/working frame&mainloop system. The mainloops in the examples are a bit messy.

My usual frame/mainloop: (note that the eventcheck can be put in a seperate function (since the app is a global), and you could also use a 'Select' here)

Global app=CreateWindow("title",0,0,1024,768,0)

Global quit=False

Repeat

	WaitEvent()
	
	If EventID()=$803
		If EventSource()=app quit=True
	EndIf
	
	; ------- your stuff below --------------
	
	
	
	; ---------- until here -----------------

Until quit

FreeGadget app
End