When I run the .au3 and move my mouse then this line will fail with @error 1.
Not sure what @error 1 is supposed to mean here.
Yep, that caused me to go back to that earlier version of AutoIt to run the au3.
I have tried to detect the icon issue, and compiled it a dozen times at least with all sorts of variations, even fixing a little of the formatting and globalizing some variables, especially some undeclared ones. I even gave it some INI entries so I could adjust things on the fly without the need to recompile every time, as I'm going back and forth between my Win XP and Win 7 machines.
The script is such a mess though and a real mind-bender to a hobbyist like me.
It has an absurd mix of Dim, Global and Local declarations all over the place.
No doubt all Dims probably need to become Global, and all Globals placed at the start of the script.
AutoIt has changed a lot since the inception of GUIBuilder, so there is certain to be some function etc that does things differently.
It really needs to be tidied up and all variable declarations and external functions checked.
Oops, just noticed the content of your other reply.
I fixed the undeclared and unused and general formatting but it still needs work:
Will check it out.
Can we open new topic for GuiBuilder.au3 ?
Anyone has always been welcome to do that.
It has had other topics and off-shoot topics for it in the past, including mine (?), but they are all pretty old now.
I had to add 20 to GUI width plus 10 for height, and add 10 to the left plus 5 to top for GuiCtrlCreateRadio to get the menus to line up correctly on my Win 7 (6.1 in reality) machine, and look a bit better.
$toolbar = GuiCreate("Choose Control Type", 170, 420, 10, @DesktopHeight/2-175, 0x00C00000, -1, $main)
$type[$i] = GUICtrlCreateRadio("foo", 10 + ($col * 50), 5 + ($row * 50), 50, 50, $BS_PUSHLIKE + $BS_ICON)
I noticed that $type was declared twice, once in a Global scope and then again in Local for a different purpose. In my latest version, not shown above, I changed all $type[$i] and similar to $contype[$i].
Edited by TheSaint, 11 January 2015 - 05:36 AM.