views:

372

answers:

2

My problem is following: I need to align text inside DateTimePicker component to center. This component however doesn't have Alignment property. This component comes from TCommonCalendar, which also doesn't have this property. Can anybody think of possible solution?

Thank you, Tofig Hasanov

A: 

I doubt it is possible.

Behind the scenes, when you create a TDateTimePicker, a window common control SysDateTimePick32 get's created. It looks like it does not allow it's Style to be changed from ES_LEFT to ES_CENTER (or ES_RIGHT for that matter).

I hope to be proven wrong.

Lieven
+1  A: 

There are many alternatives to TDateTimePicker out there, for a reason: They can the stuff that TDateTimePicker cannot.

Lars D
Can you name a good alternative?
Tofig Hasanov
Lieven