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

Add Application.EnableVisualStyles() #1184

Open
rowo360 opened this issue Feb 11, 2025 · 0 comments
Open

Add Application.EnableVisualStyles() #1184

rowo360 opened this issue Feb 11, 2025 · 0 comments
Assignees

Comments

@rowo360
Copy link
Contributor

rowo360 commented Feb 11, 2025

Describe the bug
I propose that we add the Application.EnableVisualStyles() statement to our application.
It's an innocent-looking one-line statement and the Microsoft documentation is more a black-box than a detailed description about the individual features (link). So I cannot provide a list of expected changes.

However I missed certain functionality, which will be solved by the Application.EnableVisualStyles() statement:

  • Pressing Ctrl+A in the text filter Textbox doesn't select all content. However, I regularly use it (in all other applications) to select the entire text and then press delete. Application.EnableVisualStyles() will solve it - although I don't have an idea why this is related to 'VisualStyles'. But I'm glad that I got a hint in this direction by a google search.
  • The icon in the MessageBox is somehow pixelated. I guess that's related to my 4k display.

Again, Application.EnableVisualStyles() will solve this.

Please have also close look to the buttons in the two screenshots: the corners are now rounded and there's a visual hover effect when moving the mouse over a button. Not only in this MessageBox dialog, but for all buttons - for example the TestParameter dialog.

However, that's only one example - in general I understand it that with the EnableVisualStyles() statement the built-in Windows theming to style controls is used instead of the "classic Windows" look and feel. If the computer is running without a style, then you wouldn't notice any difference.

So overall, I've the impression that we should use this statement.
Or has this already been discussed and decided in the past?

BTW: If creating a new Windows Forms application from scratch, the Application.EnableVisualStyles() is already included now.

Environment (please complete the following information):

  • TestCentric Version:2.0.0-beta6
@rowo360 rowo360 self-assigned this Feb 11, 2025
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

1 participant