🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9316

blank values in DateTimePickers

#9316
From: Kevin Johnson
Date: Thu, 15 Jul 2004 13:07
19 lines
1927 bytes
Is there anyway to achive the following, easily?  I have quite a few
TDateTimePickers that are used to represent dates read in from a Database.
When the values are read in from the database, the DateTimePickers are set
to represent them, when the user changes the data, the values of the
DateTimePickers as the basis of the update SQL statement.

Now the problems is that quite often there are no initial value value in the
database so I can't assign the dtp a value, other than a 'blind-date'
(31/12/1899 etc...).  Then when the user changes some of the data, I check
to see if tha value of the dtp is the 'blind-date' and if so I don't save
it.  This all works fine except it looks crap and deseving.  What I want to
try and do is (I know I can do this with a Panel) try and over-ride some
Paint method, and if the Date property is equal to the 'blaind-date' don't
display any value i.e. make it blank.  Is there any way to achive this
without having to create my own custome VCL?

Thanks in advance,

K
Technical Details
Message-ID: <40f67f25$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aad838891ad1623f,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Johnson" <kevjson@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: blank values in DateTimePickers
Date: Thu, 15 Jul 2004 14:07:06 +0100
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 82.39.123.106
Message-ID: <40f67f25$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089896229 82.39.123.106 (15 Jul 2004 05:57:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail