|
Post by Mark Dunham on Aug 20, 2018 10:34:30 GMT -5
Okay, I need help. I have searched high and low and cannot for the life of me find and example for what I am trying to do. I would like to remove the Horizontal Scrollbar from my texteditor sounds simple enough. I looked for stylebits I just can't seem to find it "Alyce" had a great example of texteditor from API but that would make my simple project double in size. Any help is appreciated.
|
|
|
Post by tsh73 on Aug 20, 2018 15:08:21 GMT -5
as simple as adding
stylebits #main.textedit1,0,_WS_HSCROLL,0,0 , like here
'Form created with the help of Freeform 3 v07-31-2015 'Generated on Aug 20, 2018 at 23:05:59
[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
TexteditorColor$ = "white" stylebits #main.textedit1,0,_WS_HSCROLL,0,0 texteditor #main.textedit1, 75, 57, 325, 190
'-----End GUI objects code
'-----Begin menu code
menu #main, "Edit" ' <-- Texteditor menu.
'-----End menu code
open "untitled" for window as #main print #main, "font ms_sans_serif 10" print #main, "trapclose [quit.main]"
[main.inputLoop] 'wait here for input event wait
[quit.main] 'End the program close #main end
|
|
|
Post by Mark Dunham on Aug 20, 2018 15:13:00 GMT -5
as simple as adding stylebits #main.textedit1,0,_WS_HSCROLL,0,0 , like here 'Form created with the help of Freeform 3 v07-31-2015 'Generated on Aug 20, 2018 at 23:05:59
[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
TexteditorColor$ = "white" stylebits #main.textedit1,0,_WS_HSCROLL,0,0 texteditor #main.textedit1, 75, 57, 325, 190
'-----End GUI objects code
'-----Begin menu code
menu #main, "Edit" ' <-- Texteditor menu.
'-----End menu code
open "untitled" for window as #main print #main, "font ms_sans_serif 10" print #main, "trapclose [quit.main]"
[main.inputLoop] 'wait here for input event wait
[quit.main] 'End the program close #main end
tsh73 I was so close... I had stylebits #main.teditOut, _WS_HSCROLL,0,0,0 which is the wrong order. I need to spend some more time with stylebits as always thank you for the help.
|
|