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   |
|
Hi Nossica,
Welcome to the forum
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++ 
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Sat Jun 14 13:58:41 CEST 2025
Total time taken to generate the page: 0.03766 seconds
|