如何使用 OnGetColors 事件将自定义颜色添加到 TColorBox?
我正在使用 OnGetColors 事件“http://docwiki.embarcadero.com/Libraries/en/Vcl.ExtCtrls.TColorBox”rel="noreferrer">TColorBox 组件,但我不知道了解如何使用事件的 item 参数的 Items 属性添加新颜色。
procedure (Sender: TCustomColorBox; Items: TStrings) of object;
如何使用 Items 属性向 TColorBox 添加新颜色?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用 Items 对象的
AddObject
方法,如下所示:you must use the
AddObject
method of the Items object, like so :