IT SOLUTIONS
Your TECHNOLOGY partner! 
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi Group Home
-Collapse +Expand Message Board
-Collapse +Expand Delphi KB
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Delphi Store
PRESTWOODSTORE
-Collapse +Expand Members Only

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingDelphi for W...Using Controls     Print This   
Go To Random Article
  From the November 2011 Issue of Prestwood eMag
 
Delphi Using Controls:
Using Delphi's TColorGrid
 
Posted 11 years ago on 11/22/2002 and updated 2/26/2008
Take Away: How do you specify which color to use with TColorGrid from the samples page? Why isn't it documented?
Delphi Q&A Flashcard:
 A flashcard from our Delphi Flashcards Library
 A FAQ from our Delphi FAQ Page


Question: How do you specify which color to use with TColorGrid from the samples page? Why isn't it documented?

Answer:

Use the public methods ForegroundColor and BackgroundColor. For example, in the OnChange event of a ColorGrid component you could do the following:

procedure TForm1.ColorGrid1Change(Sender: TObject); 
begin
   Edit1.Font.Color := ColorGrid1.ForegroundColor;
   Edit1.Color := ColorGrid1.BackgroundColor;
end;

None of the components on the "Samples" page are documented.



Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
Full Editor
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post:

Enter your name and security key.

Your Name:
Today's security key = P235A
Enter key:
FAQ Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.


 KB Article #100073 Counter
3087
Since 4/2/2008
-
  Load Time=1 seconds.
 
Print This

KB Post Options:
-
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


710 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join now. It's free!
Show More...


©1995-2013 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech