How can I change the caption of a TColorDialog?

Posted on 2009-05-16
1 Endorsement
Last Modified: 2013-11-23
I'm calling TColorDialog from 3 different places.  It would be helpful if the caption of the dialog indicated that.

How can I set the caption  of a TColorDialog?  Example code would be much appreciated.
Question by:DMTrump
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
  • 2
  • 2
LVL 13

Accepted Solution

ThievingSix earned 500 total points
ID: 24404400
Put this in the Color Dialogs OnShow event:
SetWindowText((Sender as TColorDialog).Handle,'test');

Open in new window


Author Closing Comment

ID: 31582276
Ooooo!  So Simple - one of those "Why didn't I think of that? things - but I didn't and you knew Thanks a lot!

The bigger question is why couldn't I find the answer to that anywhere in EE or anywhere!
LVL 13

Expert Comment

ID: 24404436
"Ooooo! So Simple - one of those "Why didn't I think of that? things - but I didn't and you knew Thanks a lot!

The bigger question is why couldn't I find the answer to that anywhere in EE or anywhere!"

Well I didn't know either haha, I started trying to modify the component directly and noticed that windows itself sets the caption. Realized that there was an OnShow. As for EE I don't think anyone has needed to change it.

Author Comment

ID: 24404528
I've wanted to before, but it's never before been a big issue - this time it sort of was becasue I myself found that I would loose track of which item I'd clicked to open the dialog (short attention span, I guess)

Thanks again!

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
oracle global variables 4 80
delphi parse string to params 3 179
DBCtrlGrid, Delphi, Scroll 7 35
How to add columns to a RAD Studio FMX grid at design time 1 61
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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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