Jump to content

jaberwacky

Active Members
  • Posts

    3,774
  • Joined

  • Last visited

  • Days Won

    16

jaberwacky last won the day on October 6

jaberwacky had the most liked content!

2 Followers

About jaberwacky

  • Birthday 09/12/1980

Profile Information

  • Member Title
    jaberwacky

Recent Profile Visitors

6,138 profile views

jaberwacky's Achievements

  1. That is the issue I'm talking about, sorry. Unfortunately, it seems like I must have changed some setting in VSCode. I can't pull up the json by typing in the top middle search bar. Well, actually, I got to it by some round about way but still see errors pop up in a msgbox. It's fine though. I can live with it. Thank you!
  2. Latest update: see 1st post for a description!
  3. Hello! I love your extension. It's the reason I switched from SciTE! I do notice that I don't see console output but instead a MsgBox. Do I have the autoit3.installDir filled out properly? I have AutoIt installed in that directory. "autoit3.installDir": "C:\\Program Files (x86)\\AutoIt3"
  4. Latest update: See the first post for details!
  5. Ok, I think I figured out a solution ... updating the first post! Here's the code from the example: #AutoIt3Wrapper_UseX64=N #include <GUIConstantsEx.au3> #include "..\AutoItObject.au3" #include "..\Canvas\Canvas.au3" Example() Func Example() _AutoItObject_StartUp() Local Const $canvas = Canvas() $canvas.Form("MyForm", "GUIObjects Example", 300, 500) $canvas.MyForm.OnClose("MyFormClose") $canvas.MyForm.SetFont("Segoe UI") $canvas.Button("MyButton1", "Example Button 1", 20, 20) $canvas.MyButton1.OnEvent("MyButton1Handler") $canvas.Checkbox("MyCheckbox", "Example Checkbox", 20, 55) $canvas.MyCheckbox.OnEvent("MyCheckboxHandler") $canvas.MyCheckbox.Check() $canvas.MyForm.Show() Do $canvas.Handler(GUIGetMsg($GUI_EVENT_ARRAY)) Until False EndFunc Func MyButton1Handler($this, Const $canvas) ConsoleWrite($this.Text & ": Clicked" & @CRLF) Consolewrite("This is the MyCheckbox text: " & $canvas.MyCheckbox.Text & @CRLF) Return True EndFunc Func MyCheckboxHandler($this, Const $canvas) ConsoleWrite($this.Text & " Is Checked: " & $this.IsChecked() & @CRLF) Return True EndFunc Func MyFormClose($this) ConsoleWrite("Exiting!" & @CRLF) $this = Null _AutoItObject_ShutDown() Exit EndFunc So, when you create a form or a control then the first parameter should be a unique name so that it can be referenced via the Canvas object.
  6. I wonder if the way that you posted earlier is the solution? I can't say I really understand what's really happening in that post though.
  7. All of my projects are terrible. I can't access other controls inside of the event handlers. 😞 Back to the drawing board.
  8. Latest update! Context Menus have been integrated! Here's how to use them: ; ... Local $myContextMenuItem1 = $canvas.ContextMenu.AddItem("My Context Menu Item 1") $myContextMenuItem1.OnEvent("MyContextMenuItem1Handler") Local $myContextSubMenuItem2 = $canvas.ContextMenu.AddItem("My Context Sub Menu Item 2", True) Local $myContextSubMenuItem2A = $myContextSubMenuItem2.AddItem("My Context Sub Menu Item 2A") $myContextSubMenuItem2A.OnEvent("MyContextSubMenuItem2AHandler") ; .... Func MyContextMenuItem1Handler($this, Const $event) Consolewrite("MyContextMenuItem1Handler Clicked!" & @CRLF) Return True EndFunc Func MyContextSubMenuItem2AHandler($this, Const $event) Consolewrite("MyContextSubMenuItem2AHandler Clicked!" & @CRLF) Return True EndFunc Tabs have been changed. To switch to a tab to add controls use: ; ... Local $myTabItem = $myTab.Add("My Tab Item") $myTabItem.Close() $myTabItem.Switch() Local $myButton = $canvas.Button("My Button", 20, 160) $myTabItem.Close() ; ...
  9. That's a pretty cool concept. I'll look into it more and try to see if I can integrate it! Thank you.
  10. Latest update. I rewrote the original post and posted the latest version. Multiple GUIs works now! Currently working on adding context menus. Then will add more controls after that.
  11. Actually, another update! I added a ton of functionality and a lot more controls! The example demonstrates two forms at the same time. Edit: Scratch the 2 GUIs idea for now. It doesn't work like I had hoped.
  12. Latest update! Added ability to register events for the GUI. Changed .SetForeColor to .SetColor() to correspond with the native GUICtrlSetColor(...) Also added .SetBkColor and .SetCursor to the gui (Canvas()) More to come over time!
  13. You're right, most of us do know it as BkColor don't we?
  14. Actually, I did .... $myControl.SetForeColor(... color ...) and $myControl.SetBkColor(... color ...) Note: I plan to change SetBkColor to SetBackColor soon
  15. I haven't implemented it yet ... I'll do it right quick, brb
×
×
  • Create New...