如何在标题栏上放置自定义按钮?

时间:2011-10-17 03:25:44

标签: delphi delphi-7 custom-titlebar

  

可能重复:
  Non client painting on aero glass window

我希望在标题栏上有一个像Skype的紧凑视图按钮这样的按钮。我怎么能这样做?

例如:

Vista-style title bar with an extra button to the left of the minimize button

1 个答案:

答案 0 :(得分:6)

你可以使用JvCaptionButton,它是在非常好但非常大的开源免费JVCL library中免费提供的。这是一个通用的“字幕按钮”。警告:外观不仅仅是原生的,不是以Windows-7-aero为主题。

此按钮不会决定从您的应用中取出什么,您必须编写代码以使表单进入紧凑模式,您可以单击此标题栏按钮,并在其OnClick事件中编写代码。

enter image description here

在运行时:

enter image description here