Page 1 of 1
AddTab Confusion
Posted: Sat Jun 01, 2024 7:18 pm
by oceanarts
Can one use AddTab with TextOut now?
I am getting a "Internal Limit Encountered. Contact The Author" error while using this command.
Both TextOut and Print gives the same error, and I am not sure if I'm using it properly.
The Code In Question:
SetFont(#MONOSPACE, 26)
AddTab(12, 8, 12)
Locate(1000, 320)
Print("Some brilliant writing.\t0Some more brilliant writing. \tSome excellent words\nEven more brilliant writing\tExcellent words.")
Re: AddTab Confusion
Posted: Sat Jun 01, 2024 7:31 pm
by plouf
what os ? works here in win11
using ONLY above code ?
Re: AddTab Confusion
Posted: Sat Jun 01, 2024 7:46 pm
by oceanarts
Well, if I isolate that code in a new Hollywood script I don't get the error, but the tab-spaces I think I'm setting still isn't working.
I'm on Fedora 39.
Re: AddTab Confusion
Posted: Sat Jun 01, 2024 8:14 pm
by oceanarts
Okay... First let me ask if I understand what the command does...
As far as I understand it sets the spacing in number of pixels of a series of tabs which will be referenced one after the other in a string.
Is this correct?
If not I have to figure out another solution.
Thanks for your time, peeps.

Re: AddTab Confusion
Posted: Sat Jun 01, 2024 8:23 pm
by plouf
yes
its for old school text style "formating"
Code: Select all
addtab(100,200,300)
NPrint("A \t B \t C")
A will be displayed in 0 pixels in console, B in 100 pixels from left, C in 200 pixels
about first code example, you only set 12 pixels, obviously text string overides "tab position" since its too long
Re: AddTab Confusion
Posted: Sat Jun 01, 2024 8:41 pm
by oceanarts
Okay. Thanks.
Figured out the cause of the error... My AddTab was part of a loop, so no wonder.
But the values don't work, so I'm guessing this is just meant for the console and not strings printed to the display?
The values in my example were small, because I mistakenly assumed I had to multiply a preset Tab pixel value, and not set number of pixels directly. I've corrected for that now.
Re: AddTab Confusion
Posted: Sat Jun 01, 2024 8:43 pm
by plouf
try the example in
AddTab() manual you should see perfect tab
https://imgpaste.net/image/SZW5O3 <- THIS
Re: AddTab Confusion
Posted: Sun Jun 02, 2024 7:34 pm
by oceanarts
Thanks. Couldn't get it to work though. I'll take a different approach for the time being.