I would like to be able to have x/y and width/height options for each type of control and gui itself.
Yes, that's what the blank parameter was for in my original example: "gui, add, edit,, MyEdit". That parameter is planned to support x, y, w, and h option letters, and probably quite a few others as well. In addition, if you use something like y+5, the next control would be placed 5 pixels beneath the bottom of the previous control.
With a static text control it would be nice to be able to use the font options available with Progress command.
Yes, I think the AutoIt approach to this is best, whereby a font is set as the new default and all controls from that point forward will use it (if applicable). Example: gui, font, verdana, 12, 400, red (where 400 is the weight). I'll try to get font support into this version unless it is thought better to defer it to the next version (to accelerate this release).
user closes the form 'HOW?'... if in every case its launched then it'd make no sense (IMHO), but if u mean it's launched only when form is closed unconventionally (alt+f4 or close button etc.) then it'd do the job.
I guess there are quite a few ways to close a window:
SC_CLOSE is done by the user, which is either Alt-F4, selecting "close" from the icon menu, or clicking the X button in the title bar.
WinClose (or something similar) is used on the GUI: I was thinking of handling this the same as the above.
Script closes by any means (its OnExit subroutine could do special handling for any GUI windows that still exist).
A button is pressed that does "gui, close". In that case, the button's subroutine can do whatever it needs to.
In light of the above, does anyone see any need to have separate "reason codes" for the closing of the GUI, or are the following enough: 1) Normal Close; 2) Script Close (maybe should bypass the GuiClose subroutine and defer to OnExit)?; 3) Button press or menu item (already fully handled by its subroutine).
when I click with right mouse button on an item of a ListBox, it would generally say that that control was activated and an item was selected, but I wanted to now how the user selected that item. An additional variable should be there for this...
That's a nice idea. I'll see if this can at least be planned as a future feature if it doesn't get into this version.
Thanks for all the feedback.
Edit: fixed typos