Solved

TDateTimePicker "Time" format... Where?

Posted on 1997-10-22
2
331 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 87
Run video youtube webbrowse 10 61
Multiple image collision 13 74
update joined tables 2 46
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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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