Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DBGrid column header text disappears

Posted on 2004-04-20
9
Medium Priority
?
217 Views
Last Modified: 2010-04-05
I have developed a Delphi 5 application on Windows 2000. When clicking on the DBGrid column header, the text disappears on another PC also with Windows 2000 on it. Why would this happen on another PC with the same OS? Thanx in advance!
0
Comment
Question by:skynergy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 3

Expert Comment

by:MikProg
ID: 10875329
Is text comes back when you release mouse? Have you do manuplation with column headers in your program?
0
 
LVL 12

Accepted Solution

by:
esoftbg earned 100 total points
ID: 10875385
DBGrid has properties:
  .....................................................
  -Font
       Charset        DEFAULT_CHARSET
       Color           clWindowText
       Height          -11
       Name           MS Sans Serif
       Pitch            fpDefault
       Size             8
  .....................................................
  -TitleFont
       Charset        DEFAULT_CHARSET
       Color           clWindowText
       Height          -11
       Name           MS Sans Serif
       Pitch            fpDefault
       Size             8
  .....................................................
Check if they are different, may be on the other PC the TitleFont is missing ????
0
 

Author Comment

by:skynergy
ID: 10875497
Thanx for your speedy response. How would I check on the other PC if the title font is missing?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:MikProg
ID: 10875562
esoftbg: Windows makes standart substitution of missed fonts. If you don't load directly missed font resource no  problem encountered.
0
 

Author Comment

by:skynergy
ID: 10875663
How would I make sure that the font I use will be on the other PC? In Delphi I mean?
0
 
LVL 11

Assisted Solution

by:shaneholmes
shaneholmes earned 100 total points
ID: 10880468
Yuo can get list of all available fonts from the Screen.Fonts, so
you can check if font Screen.Fonts.IndexOf('MyFont') is >= 0
(it returns -1 if font with that name is not installed).

Shane
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question