Solved

DBGrid column header text disappears

Posted on 2004-04-20
9
205 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 25 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
Independent Software Vendors: 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 25 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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 this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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