Post Reply 
Custom Text Formatting (Previously: Getting long results in a program)
04-08-2024, 07:44 AM
Post: #51
RE: Getting long results in Program
Hello Tyann,

(04-08-2024 05:23 AM)Tyann Wrote:  After some thought, a single atextout_p(...l) function doesn't seem too bad. We'll be able to tell from the size of the list of 8 or 9 whether we're in transparency or not
without a default value and for the variables I propose to retrieve them on a single line
as follows:
Code:

atextout_p(...par)
BEGIN
 LOCAL s,g,x,y,p,c,a,l
 LOCAL f,fr
 {'s','g','x','y','p','c','a','l'}:=par({1,8});
 IF SIZE(par)==9 THEN f:=par(9); fr=1;END.
............
END;

Sorry, perhaps I didn't express myself clearly. I completely agree with not using a list in the atextout_p function. I just meant not to create two functions with 8 and 9 parameters, but only one with 9 parameters. In case we need 8 parameters, we can simply pass a predefined value in the 9th parameter (e.g., -1).

I think it's time to establish the method of passing formatting attributes. If a string would be acceptable for you, my proposal is as follows:
B - bold
D - darkening
I - italic
U - underline
S - strikethrough

The formatting string could have from 0 to 5 characters. B indicates bold (1 pixel shift), and D indicates triple display, so all combinations can be made, e.g., "BD". If you have a different idea for attributes, please let me know.

It would also be good to apply a semi-transparent mode because currently PPL does not support displaying semi-transparent texts. This would have to apply separately to the text and separately to the background.
What do you think about this?

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Getting long results in Program - komame - 04-08-2024 07:44 AM
RE: Custom Text Formatting - Tyann - 04-15-2024, 06:55 PM
RE: Custom Text Formatting - komame - 04-15-2024, 07:42 PM
RE: Custom Text Formatting - Tyann - 04-16-2024, 04:38 AM
RE: Custom Text Formatting - komame - 04-16-2024, 06:02 AM



User(s) browsing this thread: 70 Guest(s)