Gui buttons text position

Propose new features and changes
WKen
Posts: 185
Joined: 21 Feb 2023, 00:01

Gui buttons text position

30 Sep 2023, 16:03

I like the script CreateImageButton, I want to use it instead of some menu scripts, but I want the text to be displayed starting from a specific position of the coordinates like in the menu, and I can use `t as a space separator. Is it possible?
Menu sample.

Code: Select all

MyMenu := Menu()
MyMenu.Add "Item 1`tA", MenuHandler
MyMenu.Add "Item 2", MenuHandler
MyMenu.Add "Item 3`tC", MenuHandler

MenuHandler(Item, *) {
    MsgBox "You selected " Item
}

MyMenu.Show
Gui sample, the separator is invalid here.

Code: Select all

#Requires AutoHotkey v2.0
MyGui := Gui()
MyGui.AddButton("w150", "Item 1`tA")
MyGui.AddButton("w150", "Item 2")
MyGui.AddButton("w150", "Item 3")
MyGui.Show()

Return to “Wish List”

Who is online

Users browsing this forum: Flipeador and 22 guests