[ wxwindows-Bugs-1660835 ] Using wxSTAY_ON_TOP with MiniFrames

SourceForge.net noreply at sourceforge.net
Tue Jul 24 03:16:29 PDT 2007


Bugs item #1660835, was opened at 2007-02-15 19:42
Message generated for change (Comment added) made by csomor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1660835&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMac specific
Group: Platform specific
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Alan Bird (alanlbird)
Assigned to: Stefan Csomor (csomor)
Summary: Using wxSTAY_ON_TOP with MiniFrames

Initial Comment:
For Mac, wxSTAY_ON_TOP works fine for normal Frames, but not for MiniFrames. The problem is that MiniFrames are created with WindowClass kFloatingWindowClass. Windows of that class automatically get the kWindowHideOnSuspendAttribute attribute meaning that the windows are hidden when the application is suspended.

The following change to src/mac/carbon/toplevel.cpp in wxTopLevelWindowMac::MacCreateRealWindow will make it so MiniFrames can stay on top and remain visible when wxSTAY_ON_TOP is set.

Change:
	wclass = kFloatingWindowClass ;
to:
	wclass = HasFlag(wxSTAY_ON_TOP) ? kUtilityWindowClass : kFloatingWindowClass ;

This works because utility windows (which look and float like floating windows) don't automatically hide when the application is suspended.


----------------------------------------------------------------------

>Comment By: Stefan Csomor (csomor)
Date: 2007-07-24 12:16

Message:
Logged In: YES 
user_id=81467
Originator: NO

applied with thanks :-)

Stefan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1660835&group_id=9863




More information about the wx-dev mailing list