Solved

TDateTimePicker "Time" format... Where?

Posted on 1997-10-22
2
330 Views
Last Modified: 2010-04-04
I'm in the process of modifying the TDateTimePicker component to eliminate the display of the seconds from the hh:mm:ss display format. I've looked through the VCL Source but cannot find where this display format is being set.

Hierarchy: TObject -> TPersistent -> TComponent -> TControl -> TWinControl -> TDateTimePicker

Thanks in advance for the assistance.
Pegasus
0
Comment
Question by:Pegasus100397
2 Comments
 
LVL 1

Accepted Solution

by:
millerw earned 50 total points
ID: 1348609
TDateTimePicker is a premade component in the ComCtl32.Dll file and has no "format" to be set.  I have been trying to get it so that it doesn't show the Day of the Week in the Date.  Quite an impossible task it seems.  It reads the format from windows itself and setting LongDateFormat or LongTimeFormat in Delphi has not effect.  

And also, watch out for this one.  You will have to put COM32UPD.EXE in with your installation for your program because this component requires COMCTL32.DLL version 4.70.  Microsoft finally came up with a program that will update everyones files to that version and actually allows you to distribute it.  

Good Luck,
Scott
0
 
LVL 3

Author Comment

by:Pegasus100397
ID: 1348610
While I do not like the fact that the TDateTimePicker is stuffed away in a .DLL I gotta give you the points for a good answer. I'll just grab a TEdit and a TUpDown and roll my own component (TTimePicker or some such) I'll let everyone know when it's available as there seems to be a fair amount of frustration with the TDateTimePicker doohickey that comes with Delphi.

Regards
Pegasus
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

895 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

15 Experts available now in Live!

Get 1:1 Help Now