|
Post by jarychk on Jun 30, 2024 17:10:15 GMT
Some unexpected text wrapping was happening in the wrong places, making a NOTICE box text display look wrapped in the wrong places, so the message in the NOTICE box was more difficult to read.
Now here is a helpful example program indicating what we JustBASIC programmers/programmer learners need to know. This code and running the code is informative sufficiently on its own. Learn and enjoy:
nomainwin
WindowWidth = 550 WindowHeight = 410
UpperLeftX=int((DisplayWidth-WindowWidth)/2) UpperLeftY=int((DisplayHeight-WindowHeight)/2)
button #main.button1, "display the NOTICE", [button1Click], UL, 46, 71, 200, 30 statictext #main.statictext2, "four lines of text, display study", 286, 76, 224, 20 open "text wrap study for NOTICE box" for window as #main print #main, "trapclose [quit.main]"
print #main, "font ms_sans_serif 10"
wait
[quit.main] Close #main END
[button1Click] 'Perform action for the button named 'button1' 'Insert your own code here notice "TITLE with conclusion - double spaced in middle"+chr$(13) _ +"line one of text line one of text line one of text"+chr$(13) _ +"wrap at start of line two of text line two of text"+chr$(13)+chr$(13) _ +"wrapping again to line three of text line three."+chr$(13) _ +"Finally wrapped to line four of text. Extra extra extra extra long, Line four."+chr$(13)+chr$(13) _ +"NOTICE box has a width limit!" wait
|
|