更改关闭按钮提示按钮、提示

2023-09-03 05:49:49 作者:姐丑的自然

我不得不从关闭更改我的形式的关闭按钮工具提示其他文本,没有人知道我怎么可以访问按钮,这样我就可以进行切换?

i have to change my form close button tooltip from "Close" to "Other text", does anyone know how can i access that button, so i can perform the switch?

THX提前!

推荐答案

这是几乎可以肯定是不可能的。

This is almost certainly impossible.

您可以隐藏窗体的标题栏,并从头开始重新创建它,但是这是要采取了很多的努力。

You could hide the form's title bar and re-create it from scratch, but this is going to take a lot of effort.

另外,您也可以使用第三方库,让您的应用程序的Office风格的Ribbon UI,确保库提供更改标题栏按钮的工具提示的能力。

Alternatively, you could use a third-party library to give your app an Office-style ribbon UI, making sure that library gives you the ability to change title bar button tooltips.

编辑::您可以隐藏窗体的标题栏关闭按钮,把一个普通按钮的形式,把这个词按钮关闭,并设置按钮的工具提示,以任何你想要的。

You could hide the form's title bar close button, put an ordinary button on the form, put the word "Close" on the button, and set the button's tooltip to whatever you wanted.

(我不认为这些建议是可行的......)

(I don't think any of these suggestions are practical...)