Still needs quite more work but most of the essential features are complete. The program was designed to aid in the creation of windows/forms using the MaxWinAPI (version2). Having used maxwinapi (lets call it mwa) I found I had to repeatedly write the code, run the program, see if the control was positioned correctly then repeat this this process over and over again. So to save alot of time I developed this tool.
It lets you visually create a form allowing you create and position new controls onto a form or the game window itself. You can reposition/resize/rename the controls till it looks the way you want it to. Once you are happy with it you then click on the Get Code button which gives you the GML code required to make that window/form. You can now save or copy this code into your program and presto you have a new form in your program. The checking code can also be created, this is basic checking code using a switch statement, note it will list ALL controls even windows. Remember to modify appropriate details when adding to your program
There are basic features such as reset/load/save. The features and a quick user guide will be written below as there will be no help file (except the mwa ones included). At the moment the main function of this program is to create,position,name and to get the gml creation code for the form. Other things such adding columns to listview or adding items to listbox is not available and you can do this yourself once you have the creation code.
This will be extremely useful if you use mwa of need to create/design forms for your game or application and will save you a lot of time.
To create a form:
To start create a new form.
Select form from the drop down box.
Enter the X,Y,Width and Height of the form.
The NAME should be kept as it is (for now anyway otherwise you get problems)
Enter a caption for the form if you want to.
Select any necessary flags and styles
Press the create button.
To create a control on the form:
make sure the correct parent is selected in the parent drop down list (it should automatically change once you create a form!)
Select a control type from the first drop down list.
You can select mouse positioning if you want to position the control using the mouse.
Enter all relevant fields such as width,height, flags and name.
For controls you CAN enter the name (var name:)
Press Create button.
To position the control using the mouse:
select the 'Mouse Position' radio control.
After pressing create move the mouse over the form and once you have positioned the control press ENTER to confirm.
To change the x,y, width and height of an existing control select the control from the list of 'Existing Controls'. Change the value (you are allowed to change the var name for controls, but not for forms). Once done press the UPDATE button.
When you have finished designing the form press GET CODE button. You can now save the code to a text file or simply copy and paste into your program.
You can test the code by first saving the current form design by pressing SAVE. Then press reset and load the file you just saved if all is well the form should be recreated as you designed it.
Note if you spend ages creating a form then it freezes or crashes you will have to start again. This has happened to me so remember to save regulary and also keep it simple AND try and avoid deleting controls - this will help reduce likelihood of it crashing.
If you have any problems or suggestion please let me know. I will try and fix or add these but no promises will be made!
Download version 2
When you delete a form all its controls are also destroyed and removed from the created controls list.
fixed bugs with 'position on form' co-ordinates
added scrollbar to the control type selection combobox
when updating control info the caption always got set to "" - fixed
you can now create more than one form at a time
you can get simple checking code which will list each control to check
fixed a few bugs with loading and saving
Edited by DefuzionGames, 12 February 2013 - 11:05 AM.