| Ultimate++ | ||||
|---|---|---|---|---|
| Ontwerp en ontwikkeling | ||||
| Categorie | Toolkit | |||
| Ontwikkelaar(s) | Ultimate++ team | |||
| Besturingssysteem | Windows, Linux en Unix | |||
| Geschreven in | C++ | |||
| Status en tijdlijn | ||||
| Status | Actief | |||
| Recentste versie | 2023.1 (mei 2023) | |||
| Onderdelen | ||||
| Licentie(s) | 2-laags BSD-licentie | |||
| Links | ||||
| Website | (en) Projectpagina | |||
| Versiebeheer | Broncode | |||
| ||||
Ultimate++ is een multiplatformtoolkit waarmee getracht wordt de complexiteit van de broncode te verminderen door het toepassen van vele functies uit C++.
Dit voorbeeld maakt een U++ programma met een "Hello world!"-knop:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class MyApp : public TopWindow {
typedef MyApp CLASSNAME;
public:
MyApp() {
Title("Hello world");
button.SetLabel("Hello world!");
button <<= THISBACK(Click);
Add(button.HSizePos(100, 100).VSizePos(100, 100));
}
private:
void Click() {
if(PromptYesNo("Button was clicked. Do you want to quit?"))
Break();
}
Button button;
};
GUI_APP_MAIN
{
MyApp().Run();
}