Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Multiwindows
Multiwindows [message #58980] |
Tue, 04 October 2022 12:23  |
Mesimo
Messages: 12 Registered: August 2022 Location: BENGEURIR
|
Promising Member |
|
|
Hello everyone
please help me
I have a question about multiwindows
I want to navigate between multiple windows without creating multiple "topwindows"
to solve this problem in QT:
we use widgets inside a single topWindow
i want to do the same thing in ultimate because i feel very comfortable in ultimate++
thank you
|
|
|
|
Re: Multiwindows [message #58990 is a reply to message #58980] |
Thu, 06 October 2022 22:36   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mesimo,
I do not have too much experience with multiple window, but I find this example (Gui06) you might find it useful:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyAppWindow : TopWindow {
void Close() override {
delete this;
}
void LeftDown(Point pos, dword flags) override {
(new MyAppWindow)->OpenMain();
}
void Paint(Draw& w) override {
w.DrawRect(GetSize(), SWhite());
w.DrawText(0, 0, "Click the view area to open next window!", Arial(20));
}
MyAppWindow() {
Title("My multiwindowed application").Zoomable().Sizeable();
}
};
GUI_APP_MAIN
{
(new MyAppWindow)->OpenMain();
Ctrl::EventLoop();
}
Despite that I do not remember about any other way of doing multiple window. Also, could you send the example how to do it in QT? It will be useful. Thanks!
Klugier
U++ - one framework to rule them all.
[Updated on: Thu, 06 October 2022 22:37] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 18:06:39 CEST 2025
Total time taken to generate the page: 0.00742 seconds
|