TToolBar:如何摆脱竖线? [英] TToolBar: how to get rid of vertical bars?

查看:128
本文介绍了TToolBar:如何摆脱竖线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我有一个TToolbar并将非工具按钮控件放在其上时,该控件上有多余的垂直条。

When I have a TToolbar and I put non-toolbutton controls on it, there is a superfluous vertical bar through the control. How can I get rid of the bar?

在下图中,工具栏仅包含两个工具按钮和一个TLabel,没有分隔符。注意字母V的竖线。

In the image below, the toolbar contains only two toolbuttons and a TLabel and no separators. Notice the vertical bar through the letter V.

推荐答案

如果我没记错的话,这是由于放置了其他非TToolButton控件的透明性引起的因此,如果将TLabel的透明属性设置为false,则竖线将消失。

If I recall correctly, this is due to the handle of transparency of other non TToolButton controls that are placed in the TToolBar and, for this reason, if you set "Transparent" property of your TLabel to false, the vertical bar will disappear.

这篇关于TToolBar:如何摆脱竖线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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