English 中文(简体)
TToolBar:如何摆脱垂直条形?
原标题:TToolBar: how to get rid of vertical bars?

当我有一个TToolbar 并且我对它设置了非工具按钮控制器时, 控制器中就有一个多余的垂直栏。 我怎样才能摆脱酒吧?

在下面的图像中,工具栏只包含两个工具按钮和一个标签,没有分隔符。通过字母 V 注意垂直栏。

""https://i.sstatic.net/hZ3f1.png" alt="此处输入图像描述"/"

最佳回答

如果我没记错的话,这是因为 TToolButton 系统中其他非TToolButton 控制程序的透明度问题。 因此,如果您将您的Tlabel 的“ 透明” 属性设为假, 垂直栏就会消失 。

问题回答

您可能想要尝试 JVCL 组件套件( 免费) < a href=" http:// www.delphi-jedi. org/" rel=" no follow" > Delphi Jedi 。 它有许多视觉组件, 包括各种面板和amp; 按钮。 它们还有带有梯度颜色的面板, 以及图像卡通作为示例 。

Delphi XE2 热更新 4, 仍然有这个错误,

  1. Setting TLabel.Autosize := False;
  2. TLabel.width := 50; --> just make sure its more than its caption, at least by 10 pixels
  3. TLabel.Alignment := taRightJustify

谢谢





相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签