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

How to make it only miniable? #112

Open
shinesheng opened this issue Dec 1, 2022 · 3 comments
Open

How to make it only miniable? #112

shinesheng opened this issue Dec 1, 2022 · 3 comments
Labels
All OS enhancement New feature or request question Further information is requested

Comments

@shinesheng
Copy link

image
i want it only can miniable. do not want it can resizable.
But 'SetResizable(true)' set this app can miniable and resizable too.
How can i set it only set miniable?

@MikeYeager MikeYeager added enhancement New feature or request question Further information is requested All OS labels Dec 1, 2022
@MikeYeager
Copy link
Collaborator

@shinesheng On Windows, the default for a non-sizeable window is to not allow it to be minimized or maximized. So by default, those buttons are removed from the title bar. While it's possible to write code to add the minimize button back to the title bar, it would not be the default Windows behavior. You can still minimize (or maximize) the window programmatically. This varies a bit by operating system. On Linux for example, there are no minimize and maximize buttons at all. We would consider adding this to our backlog of enhancements, but it would not be a high priority. Our suggestion for a work-around is to allow the user to minimize the window from your UI and to do it programmatically.

@shinesheng
Copy link
Author

@MikeYeager
The winform can set it prop ‘ControlBox’ equal false and it prop ‘title’ equal ‘’ to remove title bar.
Do PhotinoNET have any function to remove title bar? I can not find any function in class of PhotinoWindow to do it.
I want to make a new title that meet the work demands.

@MikeYeager
Copy link
Collaborator

@shinesheng You can call .SetChromeless(true) to remove the title bar. Then you can create your own title bar in HTML/CSS/JavaScript and style it however you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
All OS enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants