Re: Week Number to Calendar
- From: Sven Ratzlaff <spamklo@xxxxxxx>
- Date: Thu, 25 Aug 2005 14:21:41 +0200
You can derive your own class from TDateTimePicker, publish the
property in it, register it with the IDE, and use it instead of
TDateTimePicker in your programs.
You can do a "nasty hack" to change the protected property.
Type the following into your unit:
type
TMyDTP = class(TDateTimePicker)
end;
and then in your code
TMyDTP(DateTimePicker1).WeekNumbers := True;
But... the result is very interessting (i'm using D2005). NO
weeknumbers. Instead the format of the showing date has changed.
Sven
.