Page MenuHomePhabricator

Render window menus are not drawn
Closed, ResolvedPublic

Description

On MacOSX the render window menus in the upper right of render windows are not drawn. However, they are functional (if you know where they use to be) because you can click the right places and get popup menus or layout changes.

Event Timeline

Is this still 1.0 relevant? Due to the future changes of the render windows I assign this bug to our render window specialists Markus F. and E.

(In reply to comment #2)

Is this still 1.0 relevant?

Sure. Render windows are not useful without the overlays.

added 'wiki specification page'

[SVN revision 24176]
FIX (#3192): made RenderWindowMenus usable on Windows, Linux and Mac OS X

The menu is drawn correctly, but when leaving, the rectangle with the three buttons does not disappear completely ( it stays in the renderwindow drawn in white color - see the attachment for illustration )

RenderWindowMenus_XP.png (1×1 px, 34 KB)

Update: the white rectangle (all of them) as mentioned in Comment 6 disappear after the first mouse-click inside of the RenderWindow.

Igi, can you check if this is still an issue with the current MITK version on your MAC. Please comment what happen.

Peter, can you also check this bug on your linux machine?

Thank you!

--> For Win7 everything works fine. the menus are at the right position and they are shown and hide correctly.

on ubuntu 11.04 the menus are drawn on startup but they are located in the upper left corner on the multiwidget border instead of the upper right corner. after moving the mouse over the according render window the menus flip back to the correct position.
additionally after switching to "full screen" view of one renderwindow, some of the menus disappear.

correction, the menu should only appear in the render window currently focused with the mouse. this is not the case under ubuntu 11.04.

Resetting all bugs without active assignee flag to "CONFIRMED". Change status to IN_PROGRESS if you are working on it.

Miklos wrote in #9048:

Miklos Espak 2011-09-29 18:21:21 CEST

The fix does not solve the last problem that I mentioned in Comment 5.

If I resize the window, the controls of the renderers that should be in the
top-right corner remain at their old position or disappear, and they are
redrawn again only when you drag the mouse into the corners.

Current Status:

Works fine on MAC and Windows! The overlay menu for a specific renderwindow becomes visible, when the mouse cursor is inside that renderwindow

On Linux it is a little buggy:
The overlay menu for a renderwindow appears when the mouse cursor is inside that renderwindow, but it will not disappear from then on! This leads to a strange look, when you change the size of the window, because then the overlay window is stuck somewhere in the renderwindow. When you move the mouse inside the renderwindow, the overlay menu is repainted on the correct spot again.

Some Linux people should work on that!

aaahhhh, a timeless classic...

[502da9]: Merge branch 'bug-3192-RenderWindowMenusAreNotDrawnCorrectly'

Merged commits:

2012-04-11 15:41:12 Alexander Seitel [187f53]
Replaced setWindowOpacity by setVisible method.

[78709d]: Merge branch 'bug-3192-renderwindowmenu-after-CTK'

Merged commits:

2012-05-09 16:29:33 Andreas Fetzer [f314f5]
Merge branch 'bug-3192-RenderWindowMenusAreNotDrawnCorrectly' into bug-3192-renderwindowmenu-after-CTK


2012-05-09 16:28:42 Andreas Fetzer [b937cc]
Made a workaround for Mac OS X since the linux fixed caused some weird focus issues on Mac
Now when the OS is Mac the old version with the opacity is used, otherwise the new one which set the visibility

MITK-1-0 keyword is obsolete, we use Target Milestones in the future.