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.")
AddTab Confusion
AddTab Confusion
Development System : Imac G5, MorphOs 3.19
Re: AddTab Confusion
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.
I'm on Fedora 39.
Development System : Imac G5, MorphOs 3.19
Re: AddTab Confusion
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.
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
Re: AddTab Confusion
yes
its for old school text style "formating"
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
its for old school text style "formating"
Code: Select all
addtab(100,200,300)
NPrint("A \t B \t C")about first code example, you only set 12 pixels, obviously text string overides "tab position" since its too long
Christos
Re: AddTab Confusion
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.
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.
Development System : Imac G5, MorphOs 3.19
Re: AddTab Confusion
try the example in AddTab() manual you should see perfect tab
https://imgpaste.net/image/SZW5O3 <- THIS
https://imgpaste.net/image/SZW5O3 <- THIS
Christos
Re: AddTab Confusion
Thanks. Couldn't get it to work though. I'll take a different approach for the time being.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
Development System : Imac G5, MorphOs 3.19