mercoledì 13 aprile 2016

Stili di testo

Conosciete tutto quello che si può fare con i testi con livecode?
Vediamo insieme alcune proprietà.
Sul testo possiamo applicare parecchi stili, ad esempio possiamo mettere in grassetto solo la seconda parola della linea 3:

set the textStyle of word 2 of line 3 of field "esempio" to "bold"

oppure mettere uno sfondo rosso alla riga 2:

set the backColor of line 2 of field "esempio" to "red"

Possiamo anche creare elenchi puntati:

set the listStyle of line 2 of field "esempio" to "disc"

La proprietà ListStyle supporta: disc, circle, square, decimal, lower latin, upper latin, lower roman, upper roman, skip.
Inoltre sul testo possiamo applicare le seguenti proprietà paragrafo per paragrafo (cioè linea per linea): textAlign, listStyle, listDepth, listIndent, firstIndent, leftIndent, rightIndent, spaceAbove, spaceBelow, tabStops, backgroundColor, borderWidth, borderColor, hGrid, vGrid, dontWrap.
Ecco cosa si può fare in un unico campo di testo pasticciando un po' con le proprietà:


Nessun commento:

Posta un commento