Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果通过代码实现标题栏的不显示 #54

Closed
zj360202 opened this issue Nov 27, 2020 · 5 comments
Closed

如果通过代码实现标题栏的不显示 #54

zj360202 opened this issue Nov 27, 2020 · 5 comments

Comments

@zj360202
Copy link

两个问题:

  1. 是否可以让标题栏不显示
  2. 是否可以让最大按钮不显示
    谢谢
@zj360202
Copy link
Author

1.第一个问题,好像通过 f.EnabledSystemMenu(false)可以实现

@ying32
Copy link
Owner

ying32 commented Nov 29, 2020

// 设置窗口边框样式。比如:无边框,单一边框等。
func (f *TForm) SetBorderStyle(value TFormBorderStyle) 
  • 2、 设置成无边框还有啥最大按钮?????都没有标题栏了,自然也就没有按钮了。

@ying32 ying32 closed this as completed Nov 29, 2020
@zj360202
Copy link
Author

抱歉,上面说的第二个问题不正确,是在正常情况下是否可以不显示最大按钮?

@ying32
Copy link
Owner

ying32 commented Nov 30, 2020

只能禁用,要么就是BorderStyle为bsDialog时只有关闭按钮。

@zj360202
Copy link
Author

好的,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants