Solved

DBGrid column header text disappears

Posted on 2004-04-20
9
198 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
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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now