如何禁用livecode中的最大化按钮

How to disable maximize button in livecode

我是 livecode 初学者,如何禁用最大化按钮,这是我的代码

 get shell("gsettings set org.gnome.desktop.wm.preferences button-layout ':close'")

使用下面的代码

set the resizable stack "name of the stack" to false

LC 中有一个本机关键字,与 "decorations" 属性 结合使用,可处理此问题:"maximize".

您不需要 shell 命令。

使用 "decorations" 属性 启用或禁用 [​​=13=] 按钮。如果您通过脚本执行此操作,window 将在重绘时闪烁。如果您只需要永久设置一次,则可以使用堆栈的 属性 检查器来完成。

雅克说的。这是代码:

set the decorations of stack "myStack" to "close,minimize"