Post Reply 
Custom Text Formatting (Previously: Getting long results in a program)
04-01-2024, 09:08 PM
Post: #33
RE: Getting long results in Program
J'ai remplacé G9 par ICON dans mon programme et cela fonctionne plutôt bien, mais il me reste encore quelques modifications à faire.
Tout cela m'a donné matière à réflexion et alors que je suis parti sur un programme à 2 instructions, DEFTEXT pour définir les paramètres et TEXT_P pour afficher, je me demande si il ne serait pas mieux de créer une seule fonction basée sur la syntaxe TEXTOUT_P avec donc la possibilité de définir des attributs tels que : italique, gras, sous lignés , encadrés ou barrés.
TEXT_P(s,[g],x,y[,p,c,a,l,f);
avec s=chaîne à afficher
g=écran (par défaut G0)
x et y= coordonnées d'affichage
p=police (par défaut 0)
c=couleur (par défaut 0=noir)
l= largeur limite (par défaut tout le texte)
f=couleur de fond (par défaut transparent)
Cela pourrait offrir à la communauté de nouvelles fonctionnalités et pour que ce projet soit écrit avec rigueur et efficacité, je vous propose que nous le réalisions ensemble vu vos capacités de programmation supérieures aux miennes.
Qu'en dites vous ?

I've replaced G9 with ICON in my programme and it works quite well, but I still have a few changes to make.
All this has given me something to think about, and while I've decided on a programme with 2 instructions, DEFTEXT to define the parameters and TEXT_P to display, I'm wondering whether it wouldn't be better to create a single function based on the TEXTOUT_P syntax, with the option of defining attributes such as italics, bold, underlined, framed or strikethrough.
TEXT_P(s,[g],x,y[,p,c,a,l,f);
with s=string to display
g=screen (default G0)
x and y= display coordinates
p=police (default 0)
c=colour (default 0=black)
l=width limit (default is all text)
f=background colour (default is transparent)
This could offer the community some new features and to ensure that this project is written rigorously and efficiently, I suggest that we do it together, as your programming skills are superior to mine.
What do you say?


Translated with DeepL.com (free version)

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Getting long results in Program - Tyann - 04-01-2024 09:08 PM
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: 1 Guest(s)