Center alignment editbox GUI Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
marc873a
Posts: 37
Joined: 23 Jun 2020, 10:49

Center alignment editbox GUI

Post by marc873a » 24 May 2022, 08:23

Hello there.

I was wondering if there's a command for center alignment for text in the edit box in a GUI window
Just like I have done here.


So pretty much how it works when you type in center alignment in word, docs, etc.

Thx in advance
Marcus :)

RussF
Posts: 1242
Joined: 05 Aug 2021, 06:36

Re: Center alignment editbox GUI

Post by RussF » 24 May 2022, 09:39

See this for general control options.

Russ

User avatar
WalkerOfTheDay
Posts: 710
Joined: 24 Mar 2016, 03:01

Re: Center alignment editbox GUI  Topic is solved

Post by WalkerOfTheDay » 24 May 2022, 09:41

Code: Select all

Gui, Add, Edit, center w500 , I am centered !
Gui, Show
return

marc873a
Posts: 37
Joined: 23 Jun 2020, 10:49

Re: Center alignment editbox GUI

Post by marc873a » 24 May 2022, 09:46

Wait it was that easy?!?!

Thx :)



Another question:
When I use ctrl+backspace it should delete the whole word when editing. Instead, it creates some weird boxes
Why is this happening?


marc873a
Posts: 37
Joined: 23 Jun 2020, 10:49

Re: Center alignment editbox GUI

Post by marc873a » 24 May 2022, 10:03

And Thanks again

Got it to work by using this:

Code: Select all

^Backspace::
Send ^+{Left}{Backspace}

Post Reply

Return to “Ask for Help (v1)”