Sign in to follow this  
Followers 0
Alek

Gui Designer

16 posts in this topic

#1 ·  Posted (edited)

made a little GUI designer in Autoit.

features:

-Grid

-Snapping

-generate on event, the standard GuiGetMsg or just the GUI

-Save/Open

todo:

-Tabs and listview, and maybe treeview (treeview works, you just cant add stuff to it, same for listview)

-Ctrl+z function

-Multiple selection (select more then one control)

-Font Selection

-Prevent user from using the same control name twice.

-change control / GUI Styles

bugs:

-The grid makes it lag, maybe change to a background image instead of graphic.

what has bin done:

-Undo (ctrl+z)

-some other improvments.

-Started work on multiple control selection

-Show/Hide grid

-Show/Hide the dots that indicates if a control is selected

-Cleaned up some of it, its still quite messy

-Changed the function that handles dragging and resizing.

-Removed Sqlite stuff, its now using arrays (simple to save/open form)

-Save / Open Forms

-No longer allows you to use the controls that are on the Form your designing on (comboboxs etc...)

How to:

-Create the GUI and press the GO button.

-It will add the script to the clipboard, and/or write it directly into SciTE

Download: Gui_Designer.zip

Example output (event based)

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)

$Form1          = Guicreate("My Form", 190, 70, -1, -1)
$Button1        = GuiCtrlCreateButton("My Button", 10, 10, 70, 20)
$Button2        = GuiCtrlCreateButton("Oh Noes!", 90, 10, 70, 20)

GUISetOnEvent($GUI_EVENT_CLOSE, "_GuiEvents")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "_GuiEvents")
GUISetOnEvent($GUI_EVENT_RESTORE, "_GuiEvents")

GUICtrlSetOnEvent($Button1, "_Button1_OnEvent")
GUICtrlSetOnEvent($Button2, "_Button2_OnEvent")

GuiSetState(@SW_SHOW)

While 1
    Sleep(10)
Wend

Func _GuiEvents()
    Switch @GUI_CtrlId
        Case $GUI_EVENT_CLOSE
            Exit
        Case $GUI_EVENT_MINIMIZE
            
        Case $GUI_EVENT_RESTORE
            
    EndSwitch
EndFunc

Func  _Button1_OnEvent()
    
EndFunc

Func  _Button2_OnEvent()
    
EndFunc
Edited by Alek

[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites



I appreciate your work but most of people will be use Koda.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Cool Start!! I didn't see any controls to save or apply or anything. It is very simple to use though..

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Share this post


Link to post
Share on other sites

I appreciate your work but most of people will be use Koda.

yeah probably muttley but it was fun to make

Cool Start!! I didn't see any controls to save or apply or anything. It is very simple to use though..

I honestly haven't looked at it yet.... But you might look here for more http://www.autoitscript.com/forum/index.php?showtopic=75723

:)

Nice.

wow thanks :(

I don't know when my or which control is selected.... That concerns me... :P

shouldn't be to hard to do.


[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites

wow good

the feauture realu usefull

.. but the bugs ... and i think advanced use with koda ...muttley :):(

Share this post


Link to post
Share on other sites

made a little GUI designer in Autoit.

Hi Alek - you might be interested in this CyberSlug's - GuiBuilder :(

It may have been before your time, and the original version came with every AutoIt install, but is no longer included with it because Vista breaks it. Jon says he would include it with examples if someone is willing to update it for Vista - not having Vista myself, I can't do that yet, BUT YOU MIGHT LIKE TO HAVE A GO! :)

I still use GuiBuilder in preference to Koda, but then I'm still back at AutoIt v3.2.4.9 or less.

:P

When I get a chance, I'll have a look at what you've done so far. muttley

:dance:


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

Hi Alek - you might be interested in this CyberSlug's - GuiBuilder :(

It may have been before your time, and the original version came with every AutoIt install, but is no longer included with it because Vista breaks it. Jon says he would include it with examples if someone is willing to update it for Vista - not having Vista myself, I can't do that yet, BUT YOU MIGHT LIKE TO HAVE A GO! :)

I still use GuiBuilder in preference to Koda, but then I'm still back at AutoIt v3.2.4.9 or less.

:P

When I get a chance, I'll have a look at what you've done so far. muttley

:dance:

actually, I used to use that when I was on XP :cheer:


[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites

Works Lovely on Vista! Thanks for this program, although for my GUI needs I will probably use Koda. Thanks though, I will use this one for small/fast scripts.

Share this post


Link to post
Share on other sites

made some updates to this now :)

hope you like, still some stuff to like.

like Tabs :s


[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Not a single mention of my AutoIt studio. Look at it for some ideas. Minus the bugs I think it's the best pure autoit GUI designer out there. I just was never able to fix the bugs because of computer availability issues, and when they were resolved, the project was dead.

edit:

http://www.zshare.net/download/18259669fcf11a1b/

Edited by BillLuvsU

[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

WAUWIE :idiot:

So nice, im going to use this >_<

Its because I dont know how koda works :)

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

it is not advanced like Koda but i am happy to see your efforts behind this!

i hope you will keep this Project alive by updating it and making advance like Koda or better then Koda.

wish you GoodLuck.

Bye!


Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel

Share this post


Link to post
Share on other sites

it is not advanced like Koda but i am happy to see your efforts behind this!

i hope you will keep this Project alive by updating it and making advance like Koda or better then Koda.

wish you GoodLuck.

Bye!

dont think it will be as advanced as Koda or as good, but its a fun project to tweak with :)

[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites

dont think it will be as advanced as Koda or as good, but its a fun project to tweak with :)

i think you can make it advance, but it all depends on you!

you should at least try...


Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0