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

Window flashes on screen #20

Closed
MikeTheWatchGuy opened this issue Jul 30, 2018 · 2 comments
Closed

Window flashes on screen #20

MikeTheWatchGuy opened this issue Jul 30, 2018 · 2 comments
Labels
Bug Something's not right
Milestone

Comments

@MikeTheWatchGuy
Copy link
Collaborator

MikeTheWatchGuy commented Jul 30, 2018

When a form is opened, a flash of the window is seen at the default window location. A window flashes on the screen momentarily before user's form window is shown. Then the user's window is shown in the center of the screen.

What's causing this is that in order to determine the size of the form and thus get it perfectly centered on the screen, the form has to be rendered on the screen.

A fix could be to not center windows and allow the system to place them. Or, place them so that the upper left corner is centered.

This does not happen when users specify their own window locations.

Made a new setting in SetOptions. You can now change the default location of all windows from centered on screen to any (x,y) location.

@MikeTheWatchGuy MikeTheWatchGuy added the Bug Something's not right label Jul 30, 2018
@MikeTheWatchGuy MikeTheWatchGuy added this to the 2.9 milestone Aug 10, 2018
@MikeTheWatchGuy
Copy link
Collaborator Author

Found a solution! Will be released to GitHub soon and eventually roll into version 2.9!

The fix was to set the alpha channel to 0 while moving the window and restoring it to 255 once the move is complete.

@MikeTheWatchGuy
Copy link
Collaborator Author

Released 2.9 with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something's not right
Projects
None yet
Development

No branches or pull requests

1 participant