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.
有没有办法在禁用时更改 wxTextCtrl 的颜色,或者在启用时锁定输入控件的另一种方法?
我不喜欢灰色背景上的灰色文本,带有灰色边框,它使控件内部的信息更难阅读。
我正在使用 wxSmith,没有可用的标签。
调用SetEditable(false)文本控件来阻止输入。
SetEditable(false)
你也可以在创建时给 wxtextCtrl 样式wxTE_READONLY来做同样的事情。
问候 Xav'