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
Re: Multiwindows [message #58990 is a reply to message #58980] Thu, 06 October 2022 22:36 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
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

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


Current Time: Tue May 14 18:00:42 CEST 2024

Total time taken to generate the page: 0.02245 seconds