Autolaser Posted December 3, 2012 Posted December 3, 2012 @BuckMaster, thanks for the new GUI designer some other names for you Quick & Easy GUI GUI Surfacer GUI Styler GUI Stylist Easy GUI Builder Easy GUI Producer Easy GUI Director Easy GUI Styler Express GUI Builder Express GUI Producer Express GUI Director Express GUI Styler Regards Autolaser
BrewManNH Posted December 3, 2012 Posted December 3, 2012 Anyway, I'm not sure I understand this "magic-numbers" thing and how they can change at anytime, can you please explain?The thing about it is, you see, it's a very simple thing, I haven't seen the source but I imagine it's used in a case statment.Here's an explanation of what the phrase magic number means, and why it's bad coding practice to use numbers instead of variables. It's not so important when it comes to GUI things, but it's much more important when you're coding something that probably will or might change.in the future. It's far easier to change a value in one place instead of every place you've used that number. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
water Posted December 3, 2012 Posted December 3, 2012 Just for the records:The " has a GUI builder/developer/designer/whatever too. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Moderators Melba23 Posted December 3, 2012 Moderators Posted December 3, 2012 FlutterShy,Mind your language in future or you will get a short holiday to allow to wash your mouth out. All,That is the end of the discussion on "magic numbers" in this thread - take it to Chat if you want to continue. For what it is worth I am very much on the "do not use them" side - in this case it is obvious what the number means, but many such numbers are not. M23P.S. And before anyone points out that I do use some "magic numbers" in my UDFs please also notice I explain what they are at the end of the line in which they are used - and that I only use them to prevent having to #include lots of other #include files within the UDF. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Morthawt Posted December 3, 2012 Posted December 3, 2012 (edited) If all this is possible with Autoit, why did we have to use Koda? Koda is not "bad" but my god it does have its issues and quirks. If this does not end up, when completed, being part of the official setup package for Autoit then the terrorists win... (lol) Edited December 3, 2012 by Morthawt Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials.
Venix Posted December 3, 2012 Posted December 3, 2012 (edited) I love the GUI you did a great job. Edit: One of the features I like the most is the little grid you can add to help place your controls evenly on the window. Edited December 3, 2012 by Venix
Dreamfire Posted December 3, 2012 Posted December 3, 2012 Could you also add the download as attachment to the thread or another host as well.I am unable to download this somehow (not sure if i am the only one).
ahmet Posted December 3, 2012 Posted December 3, 2012 (edited) When I run GUI Builder.exe i get the following message: Line 22907 (File "...GUI Builder.exe"): Error: Variable must be of type "Object". I'm using Winndows XP Edited December 3, 2012 by ahmet
BuckMaster Posted December 4, 2012 Author Posted December 4, 2012 @ahmet - Were you doing anything specific or does it happen when you try to run the program? Windows XP 32-bit or 64-bit?
ahmet Posted December 4, 2012 Posted December 4, 2012 It happens when I try to run the program. Win XP 32-bit
Chimaera Posted December 4, 2012 Posted December 4, 2012 (edited) Very nice had a little play around with it. Immense amount of work dude Very well done Tried to import a fairly basic gui with 6 tabs and some listviews and checkboxes and it didn't like it, result below. One other thought With tabs i thought the main tab was made and then just add tabitems for each tab, but this creates a tab for each on with a tabitem? $hGUI = GUICreate( "New Window", 563, 401, -1, -1) $Tab1 = GUICtrlCreateTab( 50, 50, 490, 310) $hTabItem = GUICtrlCreateTabItem( "Tab" ) GUICtrlCreateTabItem( "" ) $Tab2 = GUICtrlCreateTab( 50, 50, 490, 310) ; creates a second tab $hTabItem = GUICtrlCreateTabItem( "Tab" ) $Tab3 = GUICtrlCreateTab( 50, 50, 490, 310); creates a third tab $hTabItem = GUICtrlCreateTabItem( "Tab" ) $Tab4 = GUICtrlCreateTab( 50, 50, 490, 310); creates a etc etc $hTabItem = GUICtrlCreateTabItem( "Tab" ) GUICtrlCreateTabItem( "" ) GUICtrlCreateTabItem( "" ) GUICtrlCreateTabItem( "" ) GUISetState() i was told like this? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <Constants.au3> $hGUI = GUICreate( "New Window", 563, 401, -1, -1) $Tab1 = GUICtrlCreateTab( 50, 50, 490, 310) $hTabItem1 = GUICtrlCreateTabItem( "Tab" ) $hTabItem2 = GUICtrlCreateTabItem( "Tab" ) $hTabItem3 = GUICtrlCreateTabItem( "Tab" ) $hTabItem4 = GUICtrlCreateTabItem( "Tab" ) GUICtrlCreateTabItem( "" ) GUISetState() While 1 $hMsg = GUIGetMsg() Switch $hMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Or have i been told wrong? Edited December 4, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices()
jmon Posted December 4, 2012 Posted December 4, 2012 Excellent work! There are so many features I prefer over Koda! - I like the control states to be shown as constants - I like the way to add styles, By the way, in Koda, you cannot set the constant $BS_ICON on a button without adding a picture, and here it's possible. - So easy to copy paste the code - Resizing icons are so intuitive Features I think should be added: - Auto declare Global / Local variables. Either like this: Global $hGUI = GUICreate( "New Window", 410, 292, -1, -1) Global $Button1 = GUICtrlCreateButton( "Button", 140, 220, 100, 30) Global $Edit2 = GUICtrlCreateEdit( "Edit", 90, 30, 220, 180) or in one line : Global $hGUI, $Button1, $Edit2 $hGUI = GUICreate( "New Window", 410, 292, -1, -1) $Button1 = GUICtrlCreateButton( "Button", 140, 220, 100, 30) $Edit2 = GUICtrlCreateEdit( "Edit", 90, 30, 220, 180) - maybe a slider to change the transparency of the the grid - under the button "Copy script" and "save script", you could maybe add buttons like: "copy constants", "copy Controls", in order to copy without the while / wend. - missing an input on the GUI to set the parent GUI (8th param of GuiCreate). - If I create 2 tabs, using the button to create a tab, I have 2 Tab items. Then after it's difficult or impossible to delete them. Also sometimes, If I manage to delete one tab and then the other, One tab stays written in the code. Thanks Digisoul 1 [center]www.jmontserrat.comFile Sequence UDF - _StringExtractPaths - _StringTrimPattern - GuiCtrlSetOnTop - CalendarUDF[/center]
mesale0077 Posted December 5, 2012 Posted December 5, 2012 hi why ? this ş,Ş,ı ,İ characters changing ş -> ? ,Ş->?, ı ->y ,İ->Y why changing this characters in code orjinal $Label9 = GUICtrlCreateLabel( "şŞıİ", 44, 107, 106, 25) but changing $Label9 = GUICtrlCreateLabel( "??yY", 44, 107, 106, 25) why ? changing thank you now but nice code
ISI360 Posted December 5, 2012 Posted December 5, 2012 Wow! Very impressive! ;) Compared with your Tool my ISN FormStudio 2 looks like a toy for kids :P
Autolaser Posted December 5, 2012 Posted December 5, 2012 @BuckMaster, here is a Bug on Settings / Options The script save permanently AutoUpdateVars=False CheckUpdate=True if edit manual to AutoUpdateVars=True CheckUpdate=False and start GUI Builder and go to Settings / Option is only "Auto Update Variables" checked not "Check for Updates on Startup" then no change settings and only save after restart "Check for Updates on Startup" is checked and "Auto Update Variables" not checked AutoUpdateVars=False CheckUpdate=True Regards Autolaser
anh113 Posted December 6, 2012 Posted December 6, 2012 Sorry, I can not download the files. Could you upload to other hosts.
Digisoul Posted December 7, 2012 Posted December 7, 2012 (edited) love your work BuckMaster. Awesome and easy interface . 5 stars for your project. I found that when I place any control in GUI, the default width & height is 5x5 for all controls; and the controls can't be re-size from the GUI, If the grid mode is enable. Edited December 7, 2012 by Digisoul 73 108 111 118 101 65 117 116 111 105 116
skin27 Posted December 8, 2012 Posted December 8, 2012 Compared with your Tool my ISN FormStudio 2 looks like a toy for kidsHaha, this quit a statement. Especially since Form Studio is such an excellent gui builder. In my experience (I worked a little longer with Form Studio of course) both are very nice tools for creating (and to some extent maintaining) a gui. I do like some of the advanced functions of GUI Builder that Form Studio lacks like:Undo function (Ctrl Z)Graphic and GDI+ EditorBi-Directional ScriptingSpacing / ResizingOn the other hand ISN has functions likeDrag and drop a control into the windowRight-Click menu (For example to add another tab item)Auto BackupIntegration in a IDE project/toolISN is more refined/intuitive right now and this tool is obvious still in beta. I had for example the following issues:- Menu builder is empty (Menu --> Menu --> Menu Builder)- Deleting a control (for example a button) doesn't always work- There is an undo but no redo- The undo function mostly results in an out of bound (array) error after a while- Text (Data) of controls are not always changed. For example I change the name for a group, but this is not changed in the gui)- First it was unclear how to get multiple tabs (by reselecting). Maybe set the number of tabs in the control editor would be quicker and easier.- I miss a "rename" entry in tree of gui (for example to change the name of the gui)- The start size at the creation of the control could be bigger (see ISN form studio)- Help function doesn't show anything- No Ctrl S to save the GUI- Can't move the controls with the arrow keys- I need to close the current gui windows, instead of opening it another tab (not asked to save it first)- Doesn't recognize style when importing a labelAs most bugs are solved this will be a worthy successor of Koda
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now