Solved

How can I change the caption of a TColorDialog?

Posted on 2009-05-16
4
467 Views
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.
1
Comment
Question by:DMTrump
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

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

Open in new window

0
 

Author Closing Comment

by:DMTrump
Comment Utility
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!
0
 
LVL 13

Expert Comment

by:ThievingSix
Comment Utility
"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.
0
 

Author Comment

by:DMTrump
Comment Utility
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!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

11 Experts available now in Live!

Get 1:1 Help Now