|
Post by wexhammer on Nov 25, 2019 6:09:05 GMT -5
Why isn't my Stylebits working? I would like it to scrol verticly when i hit the enter button on my keyboard.
[InitColors]
True = 1 : False = 0
[WindowSetup]
NOMAINWIN
WindowWidth = 1279 : WindowHeight = 502
UpperLeftX = INT((DisplayWidth-WindowWidth)/2)
UpperLeftY = INT((DisplayHeight-WindowHeight)/2)
[ControlSetup]
Menu #main, "&File" , "E&xit", [quit]
TextboxColor$ = "White"
stylebits #main.textbox1, _ES_AUTOVSCROLL OR _ES_MULTILINE, 0, 0, 0
textbox #main.textbox1, 150, 75, 275, 100
Open "Window Title" for Window as #main
#main "trapclose [quit]"
#main "font ms_sans_serif 10"
[loop]
Wait
[quit]
close #main : END
|
|
|
Post by mknarr on Nov 25, 2019 10:46:45 GMT -5
I can get it to scroll at the end of the line by changing the stylebit to
stylebits #main.textbox1,_WS_VSCROLL or _ES_MULTILINE,_ES_AUTOHSCROLL,0,0
and it will go to a new line if you press the Ctrl key and Enter at the same time.
|
|