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
Improvements in BrowserWindow #4156
Conversation
…res for windows on os x and windows
I’m not a Windows user, but I don’t think that disabling |
@sbruchmann Well, I agree that this is a bit strange. It's also a little strange to me how |
Could you add |
I'm afraid that Who are the maintainers here? I only know that @zcbenz is. What does he think? |
The reason for |
Now I understand. You suggest this for OS X, right? |
Right. |
@evgenyzinoviev Adding |
.SetMethod("setMinimizable", &Window::SetMinimizable) | ||
.SetMethod("isMinimizable", &Window::IsMinimizable) | ||
.SetMethod("setClosable", &Window::SetClosable) | ||
.SetMethod("isClosable", &Window::IsClosable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little unsure whether closable
or closeable
is the right word here.
From a little googling, it looks like Java uses closeable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cocoa uses closable
: there is a NSClosableWindowMask
flag.
Probably just use the shorter one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably just use the shorter one.
Sounds good 👍
@evgenyzinoviev @zcbenz This will fix #2970 right? |
@kevinsawicki Yes. I'm gonna finish this tomorrow. |
Added the |
Thanks! |
Thank you for adding this, much appreciated ❤️ |
movable
option supported on WindowssetMovable
,isMovable
minimizable
,closable
and corresponding methodssetMinimizable
,isMinimizable
,setClosable
,isClosable
. Implemented on Windows and OS X. This options controls whether specific window button and feature should be disabled or enabled.fullscreen
option is set tofalse
. In this case the maximize button will be disabled.resizable
is set tofalse
but the zoom button was not disabled when window is createdwin.setResizable(false); win.setResizable(true); win.setResizable(false)
, the zoom button was not disabled after the secondsetResizable(false)
call