Where there's a will there's a way. Try this Peter.
uses ComCtrls
var DFormat : String;
DFormat := 'ddd dd/MMM/yyyy';
DateTimePicker1.Perform( DTM_SETFORMAT , DWORD(NIL) , DWORD(DFormat) );
This needs to be execute in the forms show event to work.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Peter Hyde
Sent: Tuesday, May 22, 2001 5:24 PM
To: Multiple recipients of list delphi
Subject: [DUG]: TDateTimePicker/Win32
Greetings,
Has anyone ever successfully used the win32 tab's
TDateTimePicker with a "Windows Long" date format?
I ask, because its appearance is foul -- instead of showing
something like:
Tuesday, 21 May 2001
it *justifies* the text to the full width of the control, thus showing
something like:
Tuesday , 21 May 2001
It looks pug-ugly and unprofessional, but I can't seem to find a way
to affect the display, other than selecting short date format, which
is not wanted. It's not caused by Windows date/time format
settings, because they don't have spurious spaces etc. In fact, I
believe the behaviour is wired deep in Comctrl32.dll, because a
VC++ app using the same core control has the same nasty
behaviour.
Yet, I've seen other applications with a nice long date format, so...
...any clues hot to pummel THIS control into shape, anyone?
TIA.
cheers,
peter
============================================
Peter Hyde, WebCentre Ltd & SPIS Ltd, Christchurch, New Zealand
* Web automation for online periodicals: http://TurboPress.com
* TurboNote+: http://TurboPress.com/tbnote.htm
-- easy, small, handy onscreen sticky notes
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"