Popular Post kurtykurtyboy Posted May 9, 2022 Popular Post Posted May 9, 2022 (edited) GuiBuilderPlus GuiBuilderPlus is a small, easy to use GUI designer for AutoIt. Originally created long ago as AutoBuilder by the user CyberSlug, enhanced as GuiBuilder by TheSaint, and further enhanced and expanded as GuiBuilderNxt by jaberwacky, GuiBuilderPlus is a continuation of their great work, with a focus on increased stability and usability followed by new features. ------ Yes, I have decided to bring back our old friend the GuiBuilder. This utility has a long history, which you can read about in TheSaint's Gui Creators topic, starting all the back back with CyberSlug's AutoBuilder. Even though I've hacked the original code to pieces in order to document and better understand what is going on, the essence of GuiBuilder still lives on! I am using the awesome updates from GuiBuilderNxt by jaberwacky as a starting point since he already did a lot of the hard work of parsing and updating the original code, plus I really like the layout that came about from that update. Unfortunately development seems to have stopped in 2016. Not sure how much interest there is in this, but suggestions and bug reports are welcome. See Full Changelog: Spoiler v1.3.0 (2024-03-24) FIXED: Wrong line endings when copying from code preview window FIXED: Issue changing properties when Obect Explorer window is not open FIXED: Issue when selecting controls under certain other conditions FIXED: SaveAs keyboard shortcut FIXED: Undo/Redo for Global property ADDED: Auto-size property for Labels, Buttons, and Inputs v1.2.0 (2023-06-28) FIXED: Code preview not highlighting #Region/#EndRegion FIXED: Bugs in AVI control code FIXED: Keyboard shortcut behavior in properties window FIXED: GUI properties not loading when opening GUI file FIXED: Wrong background color when opening GUI file FIXED: Wrong font properties when copy/paste FIXED: Controls smushed into top left when copy/paste FIXED: Inconsistencies in setting, saving, and loading colors FIXED: Incorrect tabs for event code FIXED: Delete menuitem not working FIXED: Create variables for menuitems FIXED: Various bugs when importing from AU3 file ADDED: Image select button for AVI ADDED: Edit menuitem name, text, and global properties ADDED: Button to Copy only the GUI Region to clipboard ADDED: Status messages for copying to clipboard UPDATED: New single Image control replaces Pic, Icon, and AVI controls UPDATED: BIG speed improvements when saving and loading definition files UPDATED: More reductions in flickering UPDATED: New button icons UPDATED: Better tray menu handling UPDATED: Save code preview window size UPDATED: Add space around menu/menuitems in generated code UPDATED: Updated help file and corrected some formatting issues v1.1.0 (2023-05-10) FIXED: Bug when resizing the Code Generation window FIXED: Bug control randomly disappears FIXED: More seamless positioning of resize handles when crossing zero FIXED: Code preview was not always updating ADDED: New property "Image" for Icon and Pic controls with selection dialog UPDATED: Smaller tab width in code preview v1.0.0 (2023-05-03) FIXED: HUGE reduction in flickering overall FIXED: Missing include file for IP Address control FIXED: Bug opening a saved file with no controls FIXED: Bug applying styles to UpDown control FIXED: Fixed shortcut keys in some situations ADDED: New settings dialog ADDED: New setting: Adjustable grid size - default now set to 5px ADDED: Syntax Highlighting in code window (RESH UDF by Beege) ADDED: Full help file ADDED: Font Name property ADDED: Font weight property ADDED: Items property for combobox and listbox ADDED: Add recently opened files list to File menu ADDED: Rectangle, ellipse, and line graphics UPDATED: Added collapsible font properties UPDATED: Moved "Show grid" from Settings menu to View menu UPDATED: Allow background/foreground colors for Edit and Input controls UPDATED: Ctrl+arrow now moves 1 grid space instead of 10px UPDATED: Control selection window is now the parent (main) window UPDATED: Z-order of controls is now updated visually in real time when moved up/down the list UPDATED: Better handling of Pic and Icon resizing UPDATED: Behind-the-scenes code improvements v1.0.0-beta5 (2023-04-03) ADDED: Add events to controls (right-click menu or double click) ADDED: Add options to code preview window for convenience FIXED: Could not 'undo' drawing of new control v1.0.0-beta4 (2023-03-29) FIXED: #include's are now more dynamic (don't include constants unless they are needed) FIXED: Removed extra GuiCreateTabItem("") for each tab FIXED: Extra GuiCreateTabItem("") for each tab FIXED: Radio and Checkbox control size when drawing ADDED: Button styles BS_LEFT, BS_RIGHT ADDED: Import/parse an existing AU3 file as GUI CHANGED: Cleaner generated code by spacing Tabs and Groups v1.0.0-beta3 (2022-09-17) FIXED: #include's are now more dynamic (don't include constants unless they are needed) FIXED: Removed extra GuiCreateTabItem("") for each tab FIXED: Extra GuiCreateTabItem("") for each tab FIXED: Radio and Checkbox control size when drawing ADDED: Button styles BS_LEFT, BS_RIGHT ADDED: Import/parse an existing AU3 file as GUI CHANGED: Cleaner generated code by spacing Tabs and Groups v1.0.0-beta2 (2022-09-09) FIXED: Paste multiple controls into group or tab controls FIXED: "Select all" is more responsive larger quantities of controls v1.0.0-beta (2022-07-12) FIXED: Crash when using Ctrl+O shortcut key FIXED: GUI should not close when cancelling the save dialog ADDED: Ability to add child controls to Tabs ADDED: Ability to add child controls to Groups ADDED: Ability to lock controls to prevent from moving, resizing, deleting ADDED: New Styles tab to set GUI and control styles ADDED: Font size property ADDED: Shortcut key Ctrl+A to select all in code preview CHANGED: Properties list is now in alphabetical order v0.29 (2022-07-04) FIXED: Color and Background values of 0x000000 were saved as -1 FIXED: Setting "Paste at mouse position" incorrect behavior when turned off FIXED: Error when saving GUI to file FIXED: Crash when loading GUI file and resizing control FIXED: Improved GUI file load times ADDED: "Save As..." menu item (File manu) ADDED: Change background color of checkbox and radio controls CHANGED: You can now draw "on top of" other controls (instead of switching to selection) CHANGED: GUI definition files now use json formatting to prepare for future features v0.28 (2022-06-26) FIXED: UpDown control shrinks when dragging FIXED: Missing ListView icon in compiled app FIXED: Fixed clicking away from certain controls FIXED: Clicking a blank area should end the drawing, but did not work for some controls (combo, updown) FIXED: Multiple tab controls should not be allowed FIXED: Flickering when selecting and moving controls FIXED: Selection rectangle should not snap to grid FIXED: Grid disappears in some situations when clicking with no controls on the form ADDED: Hide tooltip when selecting more than 4 items ADDED: Allow a select number of keyboard shortcuts from tool window (ex: Press F5 to test the GUI after adjusting properties) ADDED: Better handling of IP control MAINT; Improved selection rectangle (again) MAINT: Improved some of the behind-the-scenes object handling MAINT: Significant speed improvements with object explorer MAINT: Other general speed improvements v0.27 (2022-06-10) FIXED: Lots of handling of copy+paste scenarios FIXED: Tooltip when resizing multiple controls FIXED: Changed the selection rectangle so controls don't bounce around during right-to-left selection anymore FIXED: Right-click when multiple controls are selected FIXED: Lagging when dragging many controls at once FIXED: Improved a lot of flickering when dragging things FIXED: Select a control after drawing (instead of drawing on top of it) ADDED: New menu item, shortcut key Ctrl+X, and context menu item to 'Cut' selected controls ADDED: Cut/Copy/Paste will now maintain relative positions and spacing ADDED: Improved paste functionality When pasting with Ctrl+V, control will follow mouse waiting to be placed by single click When pasting with menu or right-click, control will be placed at mouse position ADDED: Resizing multiple-selected controls will resize proportionally as a group ADDED: Resize using any of the selected grippies, not just the last selected ADDED: Status messages for changing some settings (F3, F7) ADDED: Tool button icons now built into the exe, so resources folder is not necessary to run ADDED: Improved selection detection Left-to-right selection requires entire control to be in the rectangle Right-to-left selection selects anything that crosses the rectangle ADDED: Right-click menu items: Arrange-> Align left/center/right, top/middle/bottom, space vertical/horizontal ADDED: Ask to save (definition) dialog when closing, only when a change was detected since the last save MAINT: Added logging function and debug flag for testing/development MAINT: Downgraded to AutoIT v3.3.14.5 for personal reasons (removed maps) UPDATED: Better startup loading, so windows open at the same time UPDATED: Better redrawing with working with multiple controls UPDATED: Reverted back to standard edit box for code preview due to more issues with rich edit than it was worth REMOVED: DPI scaling - not reliable enough to keep for now v0.26 (2022-06-04) FIXED: Window position bugs when no INI file. Also better handling of off-screen situations FIXED: Primary and secondary mouse clicks not detected outside default area if GUI is resized ADDED: Setting to create GUI as a function ADDED: Property to declare control as Global or Local ADDED: Listview control ADDED: IP Address control ADDED: Changed code generation preview to Rich Text with syntax highlighting using RESH UDF by Beege UPDATED: Updated menu layout - settings under tools, About under help, added online support UPDATED: Added Sleep(100) to generated code While loop v0.25 (2022-06-02) FIXED: Array subscript error when closing tool windows. FIXED: Multiple selection while holding Ctrl key now works properly. FIXED: Save/load GUI height with menus ADDED: Show grippies on each selected control! Each control object now has a built-in crippy object ADDED: Menu items can not be added and removed from the object explorer only REMOVED: Prompt to save to au3 file. User can always use File menu to save/export UPDATED: modified the About dialog text for a more detailed description and naming history MAINT: cleaned up more global variables MAINT: made control selection much more robust and consistent v0.24 2022-05-24: ADDED: Now you can set properties for the main GUI! ADDED; Added file menu item "Export to au3" for a more convenient and obvious way to save the generated code ADDED; Keyboard shortcuts to save to (Ctrl+S) or load from (Ctrl+O) definition file ADDED; Keyboard shortcut (Ctrl+A) and edit menu item to select all controls ADDED; Save window positions ADDED; Started implementation of main menu controls (no menu items yet) ADDED; Setting to generate code using OnEvent mode or Msg mode ADDED; Move control's creation order up or down the tree ADDED; Selecting a control will also highlight it in the object explorer (single select only, for now) FIXED: Wrong GUI width and height displayed in the titlebar at startup FIXED: Control names not applied when loading from agd definition file FIXED: Text looked slightly different in design vs runtime FIXED: Property Inspector window did not minimize/restore with the main GUI FIXED: Inconsistencies with displayed vs saved vs loaded GUI sizes FIXED: Controls not cleared when re-loading agd file FIXED: Sanitized some of the property inputs for invalid entry or removal (ex: -1 or "") UPDATE: More code generation improvements v0.23 2022-05-19: UPDATE: Converted maps to objects using AutoItObject UDF UPDATE: Changed to new style of property inspector using GUIScrollBars_Ex UDF by Melba23 FIXED: Better handling in Object Explorer for controls with no name FIXED: Delete certain tab items caused a program crash FIXED: Pasted control was offset from mouse position FIXED: Paste from Edit menu pasted off-screen, now pastes offset from copied control ADDED: Added setting to apply a system aware DPI scaling factor to the size and position properties (includes function to get DPI factor) ADDED: Added 'New Tab' and 'Delete Tab' items in Object Explorer right-click context menu MAINT: Cleaned up old commented-out code KNOWN ISSUE: Property tabs other than 'Main' are temporarily removed v0.22 2022-05-13: 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! v0.21 2022-05-11: 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 property 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 run/test function to use _TempFile() REMOVED: "Vals" menu item (edit menu) - superseded by new object explorer v0.2 2022-05-10: 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) v0.1 2022-05-09: FIXED BUG: last control was always selected and moved after resizing or moving the GUI FIXED BUG: minor formatting issues with generated GUICtrlCreate function names FIXED BUG: crash/failure when dragging .adb definition file onto compiled exe FIXED BUG: cannot properly change text or name properties FIXED BUG(?): generated code did not match control names in the properties toolbar FIXED BUG: if ini directory did not exist, could not write to ini file ADDED: Live Generated Code dialog to view/save the generated code (View menu) ADDED: Test GUI to preview the GUI (Tools menu) ADDED: Nudge controls by 1 pixel (or nearest grid space) with arrow keys ADDED: Keyboard shortcut to turn grid on/off ADDED: Keyboard shortcut to turn grid snap on/off More efficient INI file reading New program icon Removed MouseOnEvent UDF for now, causing crashes when clicking on anything - didn't want to investigate Updated/cleaned up AutoIt3Wrapper options Fixed some Local Const declaration issues Fixed 'state' tab vertical spacing Tidy'd code Started organizing code, breaking up into manageable chunks Started reigning in the sporadic use of Global/local variables Started documenting functions Removed/updated some antiquated references and functions Updated to latest StringSize UDF Download the latest version: v1.3.0 (2024-03-24) GuiBuilderPlus v1.3.0 - 2024-03-24.zip FIXED: Wrong line endings when copying from code preview window FIXED: Issue changing properties when Obect Explorer window is not open FIXED: Issue when selecting controls under certain other conditions FIXED: SaveAs keyboard shortcut FIXED: Undo/Redo for Global property ADDED: Auto-size property for Labels, Buttons, and Inputs GitHub Repository: https://github.com/KurtisLiggett/GuiBuilderPlus Edited March 25 by kurtykurtyboy updates jaberwacky, pixelsearch, Jovick and 15 others 15 3
TheSaint Posted May 9, 2022 Posted May 9, 2022 (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 May 9, 2022 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)
kurtykurtyboy Posted May 9, 2022 Author Posted May 9, 2022 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. TheSaint and argumentum 2
kurtykurtyboy Posted May 10, 2022 Author Posted May 10, 2022 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)
kurtykurtyboy Posted May 12, 2022 Author Posted May 12, 2022 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 TheSaint 1
kurtykurtyboy Posted May 12, 2022 Author Posted May 12, 2022 (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 May 12, 2022 by kurtykurtyboy
HighlanderSword Posted May 12, 2022 Posted May 12, 2022 (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 May 12, 2022 by HighlanderSword
kurtykurtyboy Posted May 14, 2022 Author Posted May 14, 2022 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.
kurtykurtyboy Posted May 14, 2022 Author Posted May 14, 2022 (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 May 14, 2022 by kurtykurtyboy TheSaint and Musashi 1 1
kurtykurtyboy Posted May 14, 2022 Author Posted May 14, 2022 (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 May 14, 2022 by kurtykurtyboy
TheSaint Posted May 14, 2022 Posted May 14, 2022 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)
argumentum Posted May 14, 2022 Posted May 14, 2022 (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 May 14, 2022 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
HighlanderSword Posted May 14, 2022 Posted May 14, 2022 (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 May 14, 2022 by HighlanderSword
kurtykurtyboy Posted May 16, 2022 Author Posted May 16, 2022 @argumentum Are you by chance using a high contrast theme? This is the only way I could get the colors to change for me. If I just set Windows to use "dark mode", the GUI looks normal. Anyway, maybe I can use something in the HKEY_CURRENT_USER\Control Panel\Colors key. I'll look into it.
kurtykurtyboy Posted May 16, 2022 Author Posted May 16, 2022 @HighlanderSword Thanks for the suggestions, I will keep those in mind and already have a few of them on the roadmap. Regarding loading in Koda design, maybe way way way way in the future once this is fully completed. Not likely unless someone wanted to help make that happen.
argumentum Posted May 16, 2022 Posted May 16, 2022 5 hours ago, kurtykurtyboy said: Are you by chance using a high contrast theme? Not anymore. Using BIB theme. Got it from deviantart back when I installed it. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
kurtykurtyboy Posted May 16, 2022 Author Posted May 16, 2022 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.
argumentum Posted May 16, 2022 Posted May 16, 2022 ..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 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
kurtykurtyboy Posted May 20, 2022 Author Posted May 20, 2022 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! argumentum, TheSaint and pixelsearch 3
kurtykurtyboy Posted May 24, 2022 Author Posted May 24, 2022 Check out v0.24 in the first post! There are a number of improvements in this one. Test it, use it, break it, and report it please. Changes ADDED: Now you can set properties for the main GUI! ADDED; Added file menu item "Export to au3" for a more convenient and obvious way to save the generated code ADDED; Keyboard shortcuts to save to (Ctrl+S) or load from (Ctrl+O) definition file ADDED; Keyboard shortcut (Ctrl+A) and edit menu item to select all controls ADDED; Save window positions ADDED; Started implementation of main menu controls (no menu items yet) ADDED; Setting to generate code using OnEvent mode or Msg mode ADDED; Move control's creation order up or down the tree ADDED; Selecting a control will also highlight it in the object explorer (single select only, for now) FIXED: Wrong GUI width and height displayed in the titlebar at startup FIXED: Control names not applied when loading from agd definition file FIXED: Text looked slightly different in design vs runtime FIXED: Property Inspector window did not minimize/restore with the main GUI FIXED: Inconsistencies with displayed vs saved vs loaded GUI sizes FIXED: Controls not cleared when re-loading agd file FIXED: Sanitized some of the property inputs for invalid entry or removal (ex: -1 or "") UPDATE: More code generation improvements TheSaint and Musashi 2
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