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 » Developing U++ » U++ Developers corner » U++ GUI over existing code
Re: U++ GUI over existing code [message #37350 is a reply to message #37349] Tue, 25 September 2012 15:03 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Nossica,

Welcome to the forum Cool

If your business logic is reasonably separated from the GUI code, than it should be relatively easy. From what you describe it sounds like it is the case. For the example you describe it would look somewhat like this:
struct App : public WithSomeLayout<TopWindow> {
	typedef App CLASSNAME;

	void ButtonClick(){
		<sometype> data = FunctionFromDll();
		for(int i = 0; i < data.GetCount(); i++)
			array.Add(i, data[0], ...);
	}

	App() {
		button <<= THISBACK(ButtonClick);
		//some other setup goes here
	};
};

GUI_APP_MAIN
{
	App().Run();
}


It is very simplistic example, but it should demonstrate that writing GUI is fast and simple in U++ Wink

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Some questions about witz
Next Topic: [contribution request] Linux multimonitor XRANDR support
Goto Forum:
  


Current Time: Thu May 09 10:42:30 CEST 2024

Total time taken to generate the page: 0.02339 seconds