Question

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

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top