如何设置 TTabSet 组件选项卡的图像索引
我正在使用带有多个选项卡的 TTabSet
组件。现在我想为每个选项卡分配一个图像,为此我将 Images
属性的值设置为图像列表,然后选项卡会显示一个图像。问题是如何为 TTabSet 组件的选项卡设置图像索引?
I'm using the TTabSet
component with several tabs . now I want to assign an image to each tab, for this I set the value of the Images
property to an imagelist and then the tabs appears with an image. The question is How I can set the imageindex for a tab of an TTabSet component?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用
TTabSet.OnGetImageIndex
事件来分配特定的图像索引到一个选项卡。检查这个样本
You must use the
TTabSet.OnGetImageIndex
event to assing a particular imageindex to a tab.check this sample