MaxGUI Basics
BlitzMax Forums/MaxGUI Module/MaxGUI Basics
| ||
Hello, This is my first time programming with MaxGui, and I have a few questions. 1) How do I get individual button responses ? I use the gadget action event, but that counts all the buttons' responses. 2) Will I be able to have multiple windows at once ? |
| ||
You have to compare event.source with individual gadgets. You could use a select/case to do this.Select event.source Case button1 Case button2 End select And you can definitely have multiple windows, just use createwindow to create another window. I often find it useful to create a dialogue class that handles a windows events. Last edited 2012 |
| ||
If not yet done start with Assari's MaxGUI tutorial to get the basics. Drawback is that it's a bit older and there are some minor changes in MaxGUI since then, but only a few. For sure you will get the idea. http://www.2dgamecreators.com/maxgui/ If you want to build a bigger program than a few buttons, or call more than one instance, may have a look at my GUI Designer which can help to save a lot of time and creates the source code for you. http://www.blitzmax.com/Community/posts.php?topic=96601 |
| ||
Ok, thanks. |