Jump to content

Recommended Posts

Posted (edited)

Looks very promising, so I will give it a whirl. :) 

Thanks for your work and sharing.

I've added it to the Gui Creators topic.

I have a personal preference for Case $msg = $Button_1 for instance, which you could maybe support.

Keep up the good work.

Edited by TheSaint

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

Link to post
Share on other sites

Now that the "Name" property is working properly, I added the underscore back in as the default name.

Funny thing is when I was blasting things out here and there and took the underscore out of the generated code I even thought to myself, "This looks like someone put this here intentionally. Should I keep it?" Obviously I didn't.. whoops! 😁

Anyway, it'll be there in the next revision along with a few bug fixes I've found.

Link to post
Share on other sites

First post updated with version v0.2 for several new features and bug fixes!

Spoiler
  • ADDED: Object Explorer window to display the list of objects (view, select, and delete from list)
  • ADDED: Last tool stays selected for multiple creation. Clicking away stops drawing.
  • ADDED: "_" back for default control names
  • FIXED: Issue with controls getting mixed up while deleting
  • FIXED: More intuitive/responsive clicking on and away from controls
  • FIXED: Graphic glitch when creating a new combobox
  • FIXED: Graphic glitch when clearing all controls
  • FIXED: Updown control invalid generated code
  • FIXED: Weird selection behavior when Updown control exists
  • FIXED: Pic control not showing the bitmap on drawing or generated GUI
  • FIXED: View Code dialog state not saved when clicking close[X] button
  • Other: Changed default text from Button1 to Button 1 (space)

 

Link to post
Share on other sites

First post edited for a fresh set of updates and bug fixes in v0.21!

I started reorganizing the generated code to fit my style and hopefully provide a cleaner output. Feedback welcome, and we'll see if we can merge our ideas, or not.
You can now create a template file to customize how you want your function comments to looks. Hopefully this will inspire people to document their code as they go.

I also added a "duplicate" feature, which is something I find to be very useful already.
 

List of changes:

Spoiler
  • FIXED: object explorer and code viewer not updated after .agd load
  • FIXED: object explorer not updated after copy/paste
  • FIXED: properties not disabled after finish drawing (also caused property crash)
  • FIXED: All "Main" properties now function properly - other tabs still not implemented yet (will most likely crash)
  • FIXED: skipped mouse click after closing one of the tool windows
  • FIXED: Drag move of selection broken after last update
  • ADDED: Copy menu item (edit menu)
  • ADDED: Paste menu item (edit menu)
  • ADDED: Duplicate menu item (edit menu or Ctrl+D) <- copy+paste with offset (try it and see)
  • ADDED: Minimize/restore the program
  • ADDED: Increase/decrease properties with arrow keys or mouse scroll
  • ADDED: Keyboard shortcut (F5) to run/test the form
  • ADDED: First pass at function description template (insert comment for function title based on template file)
  • UPDATED: Changed the look of the properties inspector (still a work in progress)
  • UPDATED: Changed icon to be more in line with original GuiBuilder
  • UPDATED: Modified code generation to cleaner layout (in my opinion)
  • UPDATED: Modified test function to use _TempFile()
  • REMOVED: Vals menu item (edit menu) - superseded by new object explorer

 

Link to post
Share on other sites
Posted (edited)

The tab control remains a problem. If anyone has any ideas of why it shows up as an empty rectangle on the form, I would love to hear them. Then generated GUI seems to work fine.

I wonder if it has to do with creating the control at a size of 1x1, and it doesn't want to be resized..
Nevermind, this was not the answer. 😔

Edit: I finally figured it out! Well, sort of... If the grid is turned on, the Tab control is invisible (or behind the grid). If the grid is off, it looks fine.
At least now I have something to look into.

Edited by kurtykurtyboy
Link to post
Share on other sites
Posted (edited)

Hello,

 

How do I use the Menu Icon and the one next to it, clicking on them does nothing

Can you consider giving options to put in code behind an object , for example when a button is added would like to be able to add

code to it so when it is clicked the code behind the button runs

 

 

Thanks

Paul

 

Edited by HighlanderSword
Link to post
Share on other sites
On 5/12/2022 at 6:30 PM, HighlanderSword said:

How do I use the Menu Icon and the one next to it, clicking on them does nothing

This is still a work in progress, so the menu icon and the one next to it (context menu) are disabled because they have not been implemented yet. Since it is not like other typical controls, it is going to need some additional dialogs to set the menus up. I would like to add that at some point but am focusing now on improving the stability and usability and some other minor features.

 

On 5/12/2022 at 6:30 PM, HighlanderSword said:

Can you consider giving options to put in code behind an object , for example when a button is added would like to be able to add

code to it so when it is clicked the code behind the button runs

This is one of those borderline GUI / code overlaps, so I am still on the fence about adding this and how far to take it. For now, the plan is to optionally create a function for each button, which the user can add code to themselves.

Link to post
Share on other sites
Posted (edited)

Another update for v0.22 in the first post! More fixes and features.

A couple to mention:

  • You can now set font and background colors for labels, which I often use for visual layouts. Check the screenshot.
  • Huge progress on the Tab control! It no longer glitches out when drawing. You can add and delete individual tabs, set tab names, and set tab text properties. All associated code creation and definition file saving/loading works as well. I also switched the object explorer to a treeview to show the tabitem parent/child relationship.
    • To add new tabs, first draw the tab control. Then right-click on it to add as many new tabs as needed.
    • To delete tabs, first click to activate the tab you want to delete. Then right-click on the tab control in the drawing area to delete the current tab. (eventually this can be added to the object explorer, but my brain got burnt out from all the TABS swirling around in there)
    • To change the main tab control variable name, click on the tab control in the drawing area OR the top level item in the object explorer.
    • To change the individual tab item names or display text, you must click on the tab item in the object explorer to activate the tab. Just clicking in the drawing area will only select the main tab control.
    • All of this tab work has turned out to be a real BEAR (not quite a nightmare), but I am happy with where it's at for now. I think I am going to break from tabs for a while and work on other things. In the future, I'd like to be able to add controls inside tab items by drawing in the tab area. It shouldn't be too difficult, but just more things to keep track of. BE AWARE: there is a bug(?) where, when you delete the tab control, the property inspector tab control is also deleted! I suspect this has something to do with internal AutoIt functionality, but I am not too upset about it. I am probably going to change the properties to some other type of control anyway.
  • Now you can set the position and size properties of multiple controls at once. This is really handy for aligning things - just select the controls, set the Left (or any) property, then they are align to the left! I also enjoy putting the mouse over the properties and scrolling with the mousewheel and watching the controls shift across the screen. Maybe I am just simple minded like that! 😁
  • Now when you move controls with the arrow keys, they shift by 1px in the direction of the arrow for fine adjustments. Holding the Ctrl button while pressing the arrow keys will shift the controls by 10px - very handy to speed things up.
  • New statusbar to show informational messages.
     

Changes:

Spoiler
  • FIXED:    Tab control not showing when grid is on
  • FIXED:    Tab control and tab item creation now should work properly
  • FIXED:    Right-click menu deletes wrong item
  • FIXED:    Right-click context menu showing wrong/duplicate items
  • FIXED:    Fixed crash when changing properties of multiple controls at once (now works great for aligning controls!)
  • FIXED:    Text and name properties were limited to only the characters that could fit in the box
  • FIXED:    Spaces in Name property will now be replaced with underscores _
  • ADDED:    New tab and delete tab context menu items
  • ADDED:    Text color property for labels (works on multiple selection)
  • ADDED:    Background color property for labels (works on multiple selection)
  • ADDED:    New statusbar to show messages instead of popups and splash screens
  • UPDATED:    Better positioning of extra tool windows
  • UPDATED:    Arrow keys will now "nudge" the controls by 1 px, Ctrl+arrow key will move the controls by 10px
  • UPDATED:    Copy+Paste should not change the control text
  • UPDATED:    Changed object explorer from listview to treeview to show tab items
  • KNOWN ISSUE:    Deleting a Tab control also deletes the property inspector!

 

Edited by kurtykurtyboy
Link to post
Share on other sites
Posted (edited)

OK, I already found a bug with tabs. 😩 When deleting the latest tab, everything is fine. When attempting to delete any of the previous tabs, we get a crash.

I figured it out.. and it's not pleasant.

Edited by kurtykurtyboy
Link to post
Share on other sites

Great stuff, keep up the good work. :) 

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

Link to post
Share on other sites
Posted (edited)

Looking good. I use a dark mode. If you could get the colors from the registry, I'll be able to see it better. Also a default size for the controls would be welcomed. ( I changed the 0xf7f9fe to 0x07090e to see the label in the PropertyInspector )
Thanks for working on it.

Edited by argumentum
Link to post
Share on other sites
Posted (edited)

New version is working great

Can you consider the following for future Updates:

Add in option for FileOpenDialog

Provide option to name the Gui, defaults to MyGUI

Provide an Option to load Koda design from the Au3 File

Save the windows locations (i..e Live Generated Code Dialog ,object explorer dialog)

 

Edited by HighlanderSword
Link to post
Share on other sites

Could you post a screenshot? I only have windows 10 on my work laptop, so can't install a theme patcher for custom themes.

What are your values in these registry entries:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\SystemUsesLightTheme
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme
HKEY_CURRENT_USER\Control Panel\Colors\WindowText

I suppose temporarily, I could try setting the label colors to black instead of automatically letting AutoIt select the color. That way the GUI might not match the system, but at least it would be readable.

Link to post
Share on other sites

..take a look at https://www.autoitscript.com/forum/topic/126716-control-viewer-autoit-window-info-tool/page/8/?tab=comments#comment-1440956  and read some of the thread. You'll find some code that may be helpful as I had to attend to the same coloring problem with a customer user :)

Link to post
Share on other sites

v0.23 dropped in the first post! There are not many front-end changes, but there is quite a lot going on in the background.

The highlights:

  • Converted the maps to objects using the AutoItObject UDF. I don't have any problem with maps in general, but I thought the use of objects would help clean up a lot of the code. And it did! I think a lot of my previous struggles will be much easier in the future. Plus, I learned a lot about how everything works as I made my way through the darker corners of the code.
  • Added the ability to apply a scaling factor to all size and position properties. I also updated the generated code to include a function originally by UEZ to grab the current DPI. This allows for the super simple creation of system aware GUIs that are properly scaled for the user's DPI setting
    ;standard control creation with no scaling
    GUICtrlCreateLabel("Label 1", 20, 20, 170, 20)
    ;scaling factor applied to scale for user DPI settings (normally, a tedious task)
    GUICtrlCreateLabel("Label 1", 20 * $iDpiFactor, 20 * $iDpiFactor, 170 * $iDpiFactor, 20 * $iDpiFactor)

     

  • Updated property inspector to pseudo scrolling list using the GUIScrollBars_Ex UDF by Melba23

  • Other miscellaneous bug fixes and improvements


I think next I will work on adding support for GUI properties like name, title, size, position, background, etc...
The future is looking bright for GuiBuilderPlus!

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
  • Recently Browsing   1 member

  • Similar Content

    • By TheSaint
      As many of you may not be aware, of much about AutoIt's humble beginnings, and aspects related to the first GUI version of AutoIt, I thought it might be nice to create a historical reference here for all the many GUI creators that have been created by various people over the years.
      NOTE - While one could argue, that this topic might be better placed in one of the Chat forums, I would argue, that it links to heaps of good code. While much may be redundant in that code, it is still interesting and forms a great perspective. Many are bound to find useful elements at the very least.
      Koda, is no doubt the most well-known GUI creator now, but there was a time, when CyberSlug's legendary GUIBuilder (first known as AutoBuilder) ruled the roost, and AutoIt coder's saw it as a Godsend. AutoIt coding was much simpler back then of course.
      Below, will be a timeline, of any AutoIt GUI creators listed in forum pages. It will be added to by myself as I find them or as others here find them and place a link in a subsequent post ... PLEASE HELP! Comments welcome too.
      (Also note, that this is also intended to include updates, branches etc by others)
      Apr 20 2004 - AutoBuilder by CyberSlug.
      Sep 27 2004 - An interesting topic, where CyberSlug talks about the future of AutoBuilder (etc) and renaming to GUIBuilder and you see the first mentions and links to updates by others (including myself & livewire).
      Nov 05 2004 - A topic where lookfar is working on a SciTE replacement, talks about starting a Form Designer.
      Aug 10 2005 - GuiBuilder first update by TheSaint.
      Sep 26 2005 - GUIBuilder updates by livewire (he also talks about transferring his efforts to Koda).
      Nov 02 2005 - KODA FormDesigner v1.3 by lookfar
      Nov 03 2005 - Seemingly interesting topic about forms by tonedeaf
      Dec 26 2005 - AutoIt Studio(beta) by BillLuvsU
      Jan 09 2006 - AutoBuilder update (or branch) by _^__darkbytez (livewire also posts).
      Feb 19 2006 - Koda v1.5 by lookfar
      Sep 07 2006 - Koda v1.7.3.0 by Lazycat
      Jan 07 2007 - Form/GUI Builder by FlintBrenick
      Jun 10 2007 - Gorganizer by _Kurt (more of an assister than actual GUI maker)
      Jun 27 2007 - Basic GUI Designer by Mast3rpyr0
      May 03 2008 - Autoit Programmer's Desktop (APD) by Ealric
      Jul 11 2008 - Gui Designer by Alek
      Aug 11 2008 - Gorganizer update by _Kurt
      Jun 19 2009 - Easy GUI by Mat
      Aug 13 2009 - GUI Script Creator by Pandemic (not sure this qualifies, but it made me think of templates)
      Aug 16 2010 - Creation Gui by AZJIO
      Jan 22 2012 - ISN AutoIt Studio by ISI360 (includes ISN Form Studio 2, a GUI editor)
      Mar 19 2012 - Arduino GUI Programmer by nikosliapis (creates a specific type of GUI)
      Aug 01 2012 - GuiBuilder Resurrected update/branch to GUIBuilder by baroquebob
      Dec 01 2012 - Form Builder beta (v1.0.6) by BuckMaster
      Jan 12 2015 - GUIBuilderNxt update by jaberwacky of GUIBuilder v0.8 (as a new prototype, modified to work with latest AutoIt) (not a update to the Resurrected version)
      Aug 12 2016 - The GuiBuilder Return by DFerrato as an update to GUIBuilder,
      Jan 17 2017 - GUIBuilder Project by TheSaint (a work in progress based on CyberSlug's original ... and later versions, updated by Roy, TheSaint & others).
      May 29 2019 - The GuiBuilder Return by DFerrato as an update to GUIBuilder, His new and improved version.
      May 9 2022 - GuiBuilderPlus by kurtykurtyboy as an update to GUIBuilder. A new an improved version with more to come.
      There are a significant number of creators/designers that have been started and never completed.
      +++++ STILL UNDER CONSTRUCTION +++++
      P.S. Well that's it from me tonight. I know of at least one other major creator, but cannot recall it's name or the name of the coder, though I think it starts with 'L'. Bound to be a few I've missed, and some I cannot seem to find their first appearance here (Koda, Form Builder, etc), but there may be an obvious reason for that. Will probably rely on feedback from others now that I've got the ball rolling.
      NOTE - If anyone wants to discuss any of these programs above or give some background history, then by all means do so. I will cross-reference (link to) any important comments.
    • By jaberwacky
      This is an update to GuiBuilder (CyberSlug, Roy, TheSaint, and many others) to run on the latest AutoIt Beta release.
       
      For a chronological history of GuiBuilder and other GUI designers see: >AutoIt GUI Creators (Designers).
      The seed of this effort is >here.
      Note: This is early stage software.  Please help by reporting issues.
      -----------------------------------------------------
      Now for the latest exciting installment!  Tabs are now available!  One tab can be added to the GUI.  Move it, resize it, and right click to add a new tab item!  More context menu items on the way.  Also upcoming is the ability to be able to add controls to each tab item.
      ---------------------------------------------------------
      GUIBuilderNxt - Reboot.zip - Exe included.
      dl: 4286
      Changelog:
      New Features and fixes:
      1) Show or hide control while moving or resizing control. *Currently bugged out*
      2) Option to show controls which have had their state set to hidden.
      3) Properties window for each control as they are selected.  This makes fine tuning a control easier.
      4) A button which will resize a control's width to fit the text.  Uses Melba23's _StringSize library.
      5) Remembers settings from the last session.
      6) GuiOnEvent mode.  CyberSlug made mention of wanting to do this in the early days of GuiBuilder.
      7) Maps rather than multidimensional arrays.
      8) Consistent control naming, (i.e., instead of Group1, Button2, Button3, Radio4 it would now be Group1, Button1, Button2, Radio1).
      9) Restructured the menubar layout per GuiBuilder Resurrected.
      10) Hotkeys switched to accelerators.
      11) Option to wipe the gui clear to the Edit menu.
      12) Select and move multiple controls at once by holding down Ctrl or using a selection rectangle.
      13) Copy, Paste and Delete multiple controls at once.
      14) Solid grid background that now resizes to fit the GUI.
       
      Roadmap:
      1) Get the Tab control to work correctly. *Still in progress*
      2) Finish adding properties settings to the control properties window.
      3) Make the code generation produce code with a better layout.
      4) Common GUI templates.  Ability to make your own templates too.
      5) Select multiple controls and use arrow keys (or other method?) to snap the selected controls to align to the chosen edge.
      6) Visual hints to tell you when you're within so many pixels from the edge of the window or control.  Mimics the gui designer of Visual Basic.
      7) Double click a control to edit the text.
      8) Visual hints to indicate selected controls, etc.
      9) Ability to create and store custom controls.
       
      Known issues:
      1)Many!
    • By DFerrato
      Hello to all.
      My name is Daniel, I am original of the Argentina and 9 months ago about that development in Autoit, after having passed through other languages type Basic
      I found a model of development which adapts to my tastes and I am comfortable, but my performance to generate new applications was slow due to the lack of GUI Builder.
      I found a model of development which adapts to my tastes and I am comfortable, but my performance to build new applications was slow due to lack of a generator of GUI.
      This situation led me to find a project open-source which adapted to my needs.
      Review several of the programs appointed by TheSaint, opting to improve and complete 'GuiBuilder Resurrected' publish by baroquebob; when I did was not (or not view the GUIBuilderNxt update by jaberwacky). Below I dedicate some paragraph to this.
      Also probe (and I was surprised) with Koda , but they are not open-source. (the ISN Studio is super , but very complex for my)
      Well, here I leave you the link to download, I do so with the idea that you can use it, give me your opinion and help me improve it.
      Equally here leave you a list of characteristics, all the changes were designed and implemented in a way that respects the job before made by CyberSlug, Roy, TheSaint and Bob ; without radical changes continuing what they started.
      * New control 'Pick color'
      * New properties 'Backgroud Color' and 'Style'
      * New Functions Export file (.au3) and 'Test'
      * Other function not finalizated.Yet
      * Improve Documentation.
      Wait for your comments...
       
      Regards Daniel
      guibuilder_0.9.3.zip
×
×
  • Create New...