Solved

DBGrid column header text disappears

Posted on 2004-04-20
9
187 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

13 Experts available now in Live!

Get 1:1 Help Now