Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Dialog windows showing semi randomly on the task bar on Linux
Re: Dialog windows showing semi randomly on the task bar on Linux [message #50342 is a reply to message #50341] Thu, 27 September 2018 16:30 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Yep it is reproducible under Gnome too.
I'm not sure if this is an error, Mirek will know better, of course. But in the meantime all you need to do is pass the owner and then execute/run the child.

This should work:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <TaskManagerTest/TaskManagerTest.lay>
#include <CtrlCore/lay.h>

class TaskManagerTest : public WithTaskManagerTestLayout<TopWindow> {
public:
	typedef TaskManagerTest CLASSNAME;
	TaskManagerTest()
	{
		CtrlLayout(*this, "Main Window");
		button1<<=THISBACK1(Press, false);
		button2<<=THISBACK1(Press, true);
	}
	void Press(bool ok)
	{
		if (ok)
			PromptOK("Notice the child window having a seperate item on the taskbar after closing this message");
		
		WithChildLayout<TopWindow> w;
		CtrlLayout(w, "Child Window");
		w.Open(this);
		w.Execute();
	}
};


GUI_APP_MAIN
{
	TaskManagerTest().Run();
}



Best regards,
Oblivion


[Updated on: Thu, 27 September 2018 16:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How often is Update called? Is there a similiar frequently called method?
Next Topic: Linux dual monitor: Not showing a TopWindow on the task bar
Goto Forum:
  


Current Time: Tue Jun 11 03:01:02 CEST 2024

Total time taken to generate the page: 0.02138 seconds