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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month6 days, 7 hours left to enroll

636 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