U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TopWindow&PopUp, TrayIcon » [BUG?] X11 (at least OSX) Menus displayed under TopWindow, owner=RootWindow
Re: [BUG?] X11 (at least OSX) Menus displayed under TopWindow, owner=RootWindow [message #30992 is a reply to message #30990] Mon, 31 January 2011 15:09 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
fudadmin wrote on Mon, 31 January 2011 09:01

mirek wrote on Mon, 31 January 2011 13:13

dolik.rce wrote on Mon, 31 January 2011 08:12

fudadmin wrote on Mon, 31 January 2011 13:04

mirek wrote on Sun, 30 January 2011 08:51

Would

if(active) wnd->SetWndForeground();

work for you?


error: active is not declared

blind try - this works:
if(focusCtrl) focusCtrl->SetWndForeground();



I believe it should have been
if(activate) wnd->SetWndForeground();
At least that is what I did and it helped.

Honza


Did it? It's a great news then Smile

Mirek


Honza's proposed solution was based on a wrong believe Smile. Because - error: "wnd is not declared". What works is:
	if(activate) {
//		topwindow->SetWndForeground(); //this prevents menus in OSX11
		focusCtrl->SetWndForeground();
	}

if I understand correctly, if a menu pane is activated it should become focusCtrl and it should be put into foreground



Oh, I guess I have made a mistake with ids, sorry.

Should have been:

	if(activate)
		topwindow->SetWndForeground();


It cannot be focusCtrl, as focusCtrl is not required to be topctrl...

Anyway, now looking at it, perhaps the really correct solution is

topctrl->SetWndForeground();


or maybe

if(activate)
    topctrl->SetWndForeground();


If you have time to check in osx11 and/or linux, it would be very helpful.

[Updated on: Mon, 31 January 2011 15:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Restoring TrayIcon control
Next Topic: TrayIcon test V2
Goto Forum:
  


Current Time: Wed Sep 30 09:16:43 GMT+2 2026

Total time taken to generate the page: 0.06889 seconds