View Issue Details

IDProjectCategoryView StatusLast Update
0001914NoesisGUIC# SDKpublic2021-02-02 19:03
ReporterDavidYawCSpeedAssigned Tosfernandez 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.9 
Target Version3.0.10Fixed in Version3.0.10 
Summary0001914: Setting WindowState = WindowState.Minimized leaves artifact on screen
DescriptionI have an application that I don't want the user to close by simply closing the window. (They'll exit it by clicking some other buttons in the application.) However, they can minimize the application, so I want attempting to close the window to actually minimize it.

I implemented the event handler listed below, but the window doesn't minimize properly.
- The minimize button at the top-right of the window does change to a 'restore' button, so some part of it knows that it's supposed to be minimized.
- Clicks to this window end up accessing the window behind it.
- D3D Render Context only: Instead of minimizing, the window changes to be solid white.
- WGL Render Context only: Instead of minimizing, the window never updates again. Changes to the UI are not redrawn.
- The window disappears from the Task Bar, even though I didn't tell it to do that.
Steps To Reproduce
private void MainWindow_Closing(object sender, NoesisApp.CancelEventArgs e)
{
    e.Cancel = true;
    this.WindowState = WindowState.Minimized;
}


Test Platform: My Windows development PC, running in the Visual Studio debugger. Using Win32Display and either RenderContextWGL or RenderContextD3D11.
TagsNo tags attached.
PlatformWindows

Relationships

related to 0001915 resolvedsfernandez Window.Close() doesn't close, leaves artifact on screen. 

Activities

DavidYawCSpeed

DavidYawCSpeed

2021-02-01 21:41

reporter   ~0007010

Minimizing by manually clicking the minimize button in the title bar works fine.

Issue History

Date Modified Username Field Change
2021-02-01 21:32 DavidYawCSpeed New Issue
2021-02-01 21:35 jsantos Assigned To => sfernandez
2021-02-01 21:35 jsantos Status new => assigned
2021-02-01 21:36 DavidYawCSpeed Relationship added related to 0001915
2021-02-01 21:38 jsantos Target Version => 3.0.10
2021-02-01 21:40 DavidYawCSpeed Description Updated View Revisions
2021-02-01 21:41 DavidYawCSpeed Note Added: 0007010
2021-02-02 19:03 sfernandez Status assigned => resolved
2021-02-02 19:03 sfernandez Resolution open => fixed
2021-02-02 19:03 sfernandez Fixed in Version => 3.0.10