|
Post by honky on Feb 23, 2023 14:24:01 GMT
Why is the alignment respected in the mainwin and not in the texteditor? How to align in the texteditor? thank you for
mapw=400: maph= 400 WindowWidth=mapw+15: WindowHeight=maph+40 UpperLeftX = 25: UpperLeftY = 5 TEXTEDITOR #w.text, 20, 90, 300, 280 OPEN "Presta" FOR window_nf AS #w #w, "TRAPCLOSE [closeHelp]" #w.text, "!font courrier_new 14 bold" #w.text, "!cls" a$="PC Toshiba" b$="Imprimante Toshiba" first$=a$ gosub [aff] first$=b$ gosub [aff] wait [aff] a1$=word$(first$,1): a2$=word$(first$,2): a3$=word$(first$,3): a4$=word$(first$,4) a1$=a1$+space$(20-len(a1$)) a2$=a2$+space$(20-len(a2$)) a3$=a3$+space$(25-len(a3$)) a4$=a4$+space$(20-len(a4$)) first$= a1$;a2$;a3$;a4$;a5$ #w.text, first$ print first$'**************** return wait [closeHelp] CLOSE #w END
|
|
|
Post by Rod on Feb 23, 2023 15:40:34 GMT
Miss spelling of courier
#w.text, "!font courier_new 14 bold"
|
|
|
Post by honky on Feb 23, 2023 15:44:37 GMT
Searching the LB forum I found "consolas". And I'm saved
|
|