TextOut command and text Justify
Posted: Mon Aug 26, 2024 5:49 am
Hi everyone.
I have these 2 lines of code:
-----
TextOut(#CENTER, WinHeight/4, GetCatalogString(16, "Critical Error!")) ; Display a blank line and then string 5 with the solution, with English fallback
-----
TextOut(#CENTER, WinHeight/4 + 40, GetCatalogString(5, "Error: The executable must be run from the AmiWORP-Gate directory.\n\nTo solve this issue, ensure that the executable is located in the correct folder.\nIf the executable is not inside the AmiWORP-Gate folder, the application will not function correctly and will continue to show this error.\n\nThe program will close in:"))
-----
There are 2 TextOut commands.
I'm going crazy trying to figure out why the first command works fine and places itself perfectly in the center of the window I have open, while the second is all wrong and seems to start further to the left of the window, practically outside the window and therefore missing pieces, like if the #CENTRE command doesn't work.
Ideas ?
Also is there a way to justify the text ?
Thanks everyone
bySpawnPPC
I have these 2 lines of code:
-----
TextOut(#CENTER, WinHeight/4, GetCatalogString(16, "Critical Error!")) ; Display a blank line and then string 5 with the solution, with English fallback
-----
TextOut(#CENTER, WinHeight/4 + 40, GetCatalogString(5, "Error: The executable must be run from the AmiWORP-Gate directory.\n\nTo solve this issue, ensure that the executable is located in the correct folder.\nIf the executable is not inside the AmiWORP-Gate folder, the application will not function correctly and will continue to show this error.\n\nThe program will close in:"))
-----
There are 2 TextOut commands.
I'm going crazy trying to figure out why the first command works fine and places itself perfectly in the center of the window I have open, while the second is all wrong and seems to start further to the left of the window, practically outside the window and therefore missing pieces, like if the #CENTRE command doesn't work.
Ideas ?
Also is there a way to justify the text ?
Thanks everyone
bySpawnPPC