Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的问题如下:我需要将 DateTimePicker 组件内的文本对齐到中心。但是,此组件没有 Alignment 属性。这个组件来自 TCommonCalendar,它也没有这个属性。有人能想到可能的解决方案吗?
谢谢你,托菲格哈萨诺夫
有很多 TDateTimePicker 的替代品,原因是:它们可以提供 TDateTimePicker 不能的东西。
我怀疑这是可能的。
在幕后,当您创建一个 TDateTimePicker 时,会创建一个窗口公共控件SysDateTimePick32。看起来它不允许将其样式从 ES_LEFT 更改为 ES_CENTER (或 ES_RIGHT )。
我希望被证明是错误的。