将图标添加到Firemonkey TTabControl的选项卡中 [英] Add icons to the tabs of a Firemonkey TTabControl

查看:200
本文介绍了将图标添加到Firemonkey TTabControl的选项卡中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要在Firemonkey中向TButton添加图标,可以在按钮上添加TImage。但是如何在TTabControl的选项卡中添加图标?这可能吗?

To add an icon to a TButton in Firemonkey one can add a TImage to the button. But how to add an icon to a tab of a TTabControl? Is this possible?

推荐答案

至少你需要修改样式(添加图像)并可能创建来自TTabControl的自定义控件来设置图像数据。

At the very least you'll need to modify the style (to add the image) and probably create a custom control descended from TTabControl to set the image data.

这篇关于将图标添加到Firemonkey TTabControl的选项卡中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆