?
Solved

Overlay of TEdit (alpha blend? or clear background) for Timer App

Posted on 2003-11-23
5
Medium Priority
?
493 Views
Last Modified: 2010-04-05
I want to create a simple timer, but I want the display to appear like a digital clock, such that you can see the grey template of 88:88:88 and the actual display numbers being a much darker overlay.  I thought of having two TEdit boxes, the first with a grey font of 88:88:88 and the second with black font and a clear background, but I don't seem to be able to give the TEdit control a see-through background.  Annoted/Explained Code preferable
0
Comment
Question by:jazzygm
[X]
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
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Ferruccio Accalai
ID: 9806960
i'd go to another way....
A Timagelist with 11 images (for 0 to 9 in led style and the : sign) then a panel with 8 Timage.
On timer read the Time String value (for example 13:00:12) and assign to the same pos image  the correspondent image from imagelist....It's just an idea, but so you can customize your images, and so your digital numbers, as you prefere.....

F68 ;-)

0
 
LVL 23

Expert Comment

by:Ferruccio Accalai
ID: 9807034
btw to use your idea should be bettere to use a led styled label....there're lots of led label components on the web and expecially on torry.net

in this package there's TPieLedLabel with source that's a good solution for your job
http://homepages.borland.com/torry/vcl/packs/middle/pietools.zip

F68 ;-)
0
 

Author Comment

by:jazzygm
ID: 9807088
It seems wasteful of resources though, I would have thought that maybe subclassing the Tedit and fiddling with its background properties to allow it to be transparent would be better, but I have no idea how to!
0
 
LVL 23

Accepted Solution

by:
Ferruccio Accalai earned 300 total points
ID: 9807118
so go to a more simple way....use 2 tlabel, the first with font color clInactiveCaption.
The second exactly over the first with font color clblack and transparent property to true....the easiest way...

F68 ;-)
0
 

Author Comment

by:jazzygm
ID: 9811851
Thanks, i REALLY should have thought of that myself, I think I got hit with a stupid stick at the start of the weekend!
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

771 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