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   |
Oblivion
Messages: 1202 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
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Thu, 27 September 2018 16:30] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 03:38:19 CEST 2025
Total time taken to generate the page: 0.00441 seconds
|