|
Post by klewlis on Dec 25, 2021 13:47:24 GMT -5
Is there a way to set a textbox to centered justification? This textbox is filled in by the user and the information they input is tightly crowded to the left end of the text box.
Sorry, posted this to the wrong place.
|
|
|
Post by tsh73 on Dec 25, 2021 14:50:29 GMT -5
Moved to Novice board.
Stylebits is the answer, see
'Form created with the help of Freeform 3 v07-31-2015 'Generated on Dec 25, 2021 at 22:46:55
[setup.main.Window]
'-----Begin code for #main
nomainwin WindowWidth = 550 WindowHeight = 410 UpperLeftX=int((DisplayWidth-WindowWidth)/2) UpperLeftY=int((DisplayHeight-WindowHeight)/2)
'-----Begin GUI objects code
TextboxColor$ = "white" stylebits #main.textbox1, _ES_CENTER, 0, 0, 0 textbox #main.textbox1, 5, 5, 150, 25
'-----End GUI objects code
open "untitled" for window as #main print #main, "font ms_sans_serif 10" print #main, "trapclose [quit.main]"
#main.textbox1 "Aligned text"
[main.inputLoop] 'wait here for input event wait
[quit.main] 'End the program close #main end
|
|
|
Post by klewlis on Dec 25, 2021 16:58:16 GMT -5
Stylebits did the trick, thank you
|
|
dkl
Full Member
Posts: 234
|
Post by dkl on Jan 1, 2022 17:55:26 GMT -5
|
|
|
Post by Walt Decker on Jan 2, 2022 7:01:35 GMT -5
|
|