Re: Week Number to Calendar



"UN" <ukko_noa@xxxxxxxxxxxxxxxxxxx> wrote in message
news:dejvug$c7n$1@xxxxxxxxxxxxxxxxxxxxx

> From the Delphi help I understood that it is possible to get the
> week number to the 'DatePicker' -component's calendar setting the
> property weeknumber := true. In the Object Inspector, however, there
> is not such a property.

Correct. The Object Inspector displays only published properties.

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.

If it were public, you could change it in code. It being protected
means that only descendant classes are supposed to be messing with
it.

Groetjes,
Maarten Wiltink


.