wyvern010
Topic Author
Posts: 24
Joined: 18 Apr 2019, 13:41

Changing WindowStyle makes window white and freezes window.

12 Nov 2019, 14:58

So i hook key events in MainWindow like so:
 private bool ctrl = false;
        private void MainWindow_KeyUp(object sender, KeyEventArgs args)
        {
            if (args.Key == Key.Escape)
                new Messaging.Message(2, "Window", "LogIn"); // sets content of MainWindow to LogInScreen.
            if (args.Key == Key.LeftCtrl || args.Key == Key.RightCtrl)
                ctrl = true;
            if (args.Key == Key.F && ctrl)
            {
                ctrl = false;
                if (this.WindowStyle == WindowStyle.SingleBorderWindow)
                    this.WindowStyle = WindowStyle.ThreeDBorderWindow;
                else
                    this.WindowStyle = WindowStyle.SingleBorderWindow;;
            }
            args.Handled = true;
        }
        
And after changing the WindowStyle the windows becomes white, and i'm unable to activate it.
It does not crash like programs on Windows, that become mat/white.
It feels like noesis freezes, but no error is spit out.

The same hapens when changing WindowStyle to WindowState;

The end goal here is to go from Window with a border to fullscreen-borderless and the other way around.

Tags:
 
User avatar
sfernandez
Site Admin
Posts: 1778
Joined: 22 Dec 2011, 19:20

Re: Changing WindowStyle makes window white and freezes window.

13 Nov 2019, 11:10

I was able to reproduce it here.
Could you please report it in our bugtracker, we'll try to solve it as soon as possible.
 
wyvern010
Topic Author
Posts: 24
Joined: 18 Apr 2019, 13:41

Re: Changing WindowStyle makes window white and freezes window.

13 Nov 2019, 11:33

Done!
https://www.noesisengine.com/bugs/view.php?id=1584

ps: Sorry for abusing noesis this way! :D
 
User avatar
sfernandez
Site Admin
Posts: 1778
Joined: 22 Dec 2011, 19:20

Re: Changing WindowStyle makes window white and freezes window.

13 Nov 2019, 12:07

No problem :)
Thanks for the report.

Who is online

Users browsing this forum: No registered users and 12 guests