AddTab Confusion

Find quick help here to get you started with Hollywood
Post Reply
oceanarts
Posts: 111
Joined: Mon May 27, 2024 10:42 pm

AddTab Confusion

Post 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.")
Development System : Imac G5, MorphOs 3.19
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: AddTab Confusion

Post by plouf »

what os ? works here in win11

using ONLY above code ?
Christos
oceanarts
Posts: 111
Joined: Mon May 27, 2024 10:42 pm

Re: AddTab Confusion

Post 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.
Development System : Imac G5, MorphOs 3.19
oceanarts
Posts: 111
Joined: Mon May 27, 2024 10:42 pm

Re: AddTab Confusion

Post 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. :)
Development System : Imac G5, MorphOs 3.19
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: AddTab Confusion

Post 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
Christos
oceanarts
Posts: 111
Joined: Mon May 27, 2024 10:42 pm

Re: AddTab Confusion

Post by oceanarts »

Okay. Thanks.
Figured out the cause of the error... My AddTab was part of a loop, so no wonder. :lol:
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.
Development System : Imac G5, MorphOs 3.19
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: AddTab Confusion

Post by plouf »

try the example in AddTab() manual you should see perfect tab

https://imgpaste.net/image/SZW5O3 <- THIS
Christos
oceanarts
Posts: 111
Joined: Mon May 27, 2024 10:42 pm

Re: AddTab Confusion

Post by oceanarts »

plouf wrote: Sat Jun 01, 2024 8:43 pm try the example in AddTab() manual you should see perfect tab

https://imgpaste.net/image/SZW5O3 <- THIS
Thanks. Couldn't get it to work though. I'll take a different approach for the time being.
Development System : Imac G5, MorphOs 3.19
Post Reply