Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
coloured text, text size #272494
06/18/09 11:08
06/18/09 11:08
Joined: Apr 2002
Posts: 117
Spain
Abstracto Offline OP
Member
Abstracto  Offline OP
Member

Joined: Apr 2002
Posts: 117
Spain
Hi,

im trying to make a text zone, using a panel as background,
and a TEXT to show some text lines, using a TTF font (i.e: Arial 12). AS this is a TTF, letters have different pixel width.

Well, i want to show the text with "hyperlinks", that is, it the text is black, over a white background, some of the text words are highlighted on blue.
I think the way to develop this is by using more than 1 TEXT,
using more TEXT controls as needed depending of the number of words or lines to show. But to put together all the lines or TEXTs, i need to know the size of every work or line.
Example:
One line
Another line with Hyperlink inside
Other line

Special line


If this is too complicate, i at least want to have coloures strings, that is, every string (normally printed on one line)can have a different color or other lines. The line color is supplied on another variable.
To do this, i need to know the size of the line: if the line is too long to be shown on only one line (line wrap), so i can occupy more than 1 line, and the following line (or TEXT), with a different color, will be next to the last previous line.
Example:

One line
Another line with Hyperlink
Other line
Special Line

Any help with this?
Thanks!

Re: coloured text, text size [Re: Abstracto] #272538
06/18/09 13:20
06/18/09 13:20
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

I remember a discussion on this topic...maybe a search could help.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1