Delphi 7 中的 DateTimePicker 对齐
我的问题如下:我需要将 DateTimePicker 组件内的文本对齐到中心。然而,该组件没有 Alignment 属性。这个组件来自TCommonCalendar,它也没有这个属性。有人能想到可能的解决方案吗?
谢谢你, 托菲格·哈萨诺夫
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
TDateTimePicker 有很多替代品,原因是:它们可以做 TDateTimePicker 做不到的事情。
There are many alternatives to TDateTimePicker out there, for a reason: They can the stuff that TDateTimePicker cannot.
我怀疑这是可能的。
在幕后,当您创建 TDateTimePicker 时,会创建一个窗口公共控件 SysDateTimePick32。看起来它不允许将其样式从 ES_LEFT 更改为 ES_CENTER (或 ES_RIGHT )。
我希望被证明是错误的。
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.