Add Forms in BlitzMax

BlitzMax Forums/BlitzMax Beginners Area/Add Forms in BlitzMax

boblol(Posted 2013) [#1]
Hi ive been searching all over the net trying to figure out how to incorporate forms in BltixMax for example



username: {-------------}

If True open new Form while closing other form

if false deny login go back to login form


Once user logs in i will have various tabs and other forms that would need to pop up.


Any ideas?


like in visual basic we would just add

what was it called?

add.form1 or form1.add

and to close it would be like

form1.close

any ideas?


GfK(Posted 2013) [#2]
Check out the MaxGUI forum.


boblol(Posted 2013) [#3]
Okay thankyou


GaryV(Posted 2013) [#4]
These tutorials should really help:

http://blitzbasic.co.nz/Community/posts.php?topic=54579


boblol(Posted 2013) [#5]
Ive already read that but it doesnt talk about adding forms into forms


jsp(Posted 2013) [#6]
If True open new Form while closing other form

Open a new form is nothing else than using CreateGadget... if it does not yet exist, or ShowGadget... if the for example login window was already created before (recommended)
Closing the other form is similar: FreeGadget... if the form is not needed anymore, or HideGadget... if the dialog is may used more often

if false deny login go back to login form

Show or hide the corresponding windows with all gadgets on top as you need at a certain time


Once user logs in i will have various tabs and other forms that would need to pop up.

Same thing actually

add.form1 or form1.add

and to close it would be like

form1.close

MaxGUI does not come by default with an OOP interface, if you need one have a look at my GUI designer which ads one on top:
http://www.blitzmax.com/Community/posts.php?topic=100518