DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Font Handling in TSimpleGraph

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 250
Location: Thessaloniki, Greece

PostPosted: 18/08/06 08:02    Post subject: Font Handling in TSimpleGraph Reply with quote

I have two nodes (node1, node2), the font of which is set to a common TFont selected from a FontDialog. So far so good. Why comparing the font of these nodes for using different fonts returns false? That is:
Code:
node1.font<>node2.font

evaluates to true. Any idea?

When a node is created the typical way, does it have it's font set to some value or it is undefined and the hostSimpleGraph.font is used? Could this be the problem?

edit: after some investigation, it seems that the font property points to some address. Comparing the way I described earlier is like comparing two different addresses. Silly me.... Embarassed

Now the question is:
Do I have to compare every single property of TFont to deside if two TFont instances have the same content?

_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 18/08/06 13:03    Post subject: Reply with quote

Initial font of each object is the SimpleGraph's font.

Yes, you have to compare every single property of the font object.

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 250
Location: Thessaloniki, Greece

PostPosted: 18/08/06 13:05    Post subject: Reply with quote

Kambiz wrote:
Yes, you have to compare every single property of the font object.


sad but true! thanks.

_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 250
Location: Thessaloniki, Greece

PostPosted: 19/08/06 11:48    Post subject: Reply with quote

a bit off-topic question:

Is there any way to fill a combo-box with the available typefaces of a given font, like in the script combo box of the TFontDialog?

Thanks.

_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 274

PostPosted: 19/08/06 16:38    Post subject: Reply with quote

every tt font has regular, bold, italic and bold italic, what more d'you want? Simply use Freetype thingie and have some fun!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kokkoras
Senior Member


Joined: 12 Mar 2005
Posts: 250
Location: Thessaloniki, Greece

PostPosted: 19/08/06 20:26    Post subject: Reply with quote

Johnny_Bit wrote:
every tt font has regular, bold, italic and bold italic, what more d'you want? Simply use Freetype thingie and have some fun!


Sorry, my intention was to ask about charsets, not typefaces. I am asking about DEFAULT_CHARSET, GREEK_CHARSET, ANSI_CHARSET, etc. Is there any way to get those for the selected TT Font?

_________________
Fotis
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group