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 » U++ Widgets - General questions or Mixed problems » Multiwindows
Multiwindows [message #58980] Tue, 04 October 2022 12:23 Go to next message
Mesimo is currently offline  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 #58989 is a reply to message #58980] Thu, 06 October 2022 20:18 Go to previous messageGo to next message
BetoValle is currently offline  BetoValle
Messages: 202
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,
if alternatively it serves as MDI window, here follows an attached example (but involves topwindow)!
  • Attachment: testeMDI.7z
    (Size: 1.54KB, Downloaded 58 times)
Re: Multiwindows [message #58990 is a reply to message #58980] Thu, 06 October 2022 22:36 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
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

Re: Multiwindows [message #58991 is a reply to message #58980] Thu, 06 October 2022 23:41 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
Hello Mesimo,

AFAIK, there is no MDI support in U++, if that is what you're asking for.
However, there is a sophisticated docking framework that you can dock/undock multiple windows into same topwindow.

Best regards,
Oblivion


[Updated on: Thu, 06 October 2022 23:42]

Report message to a moderator

Previous Topic: Ctrl::MouseLeave()
Next Topic: Layout management
Goto Forum:
  


Current Time: Fri Mar 29 08:59:55 CET 2024

Total time taken to generate the page: 0.01459 seconds