Sat, 31 Jan 2015 11:51:54 +0100
added box layout and button (WPF)
#include "stdafx.h" #include <stdio.h> #include "controls.h" #using "UIcore.dll" UI_EXPORT void* __stdcall UIbutton(gcroot<UI::Container^> *container, char *label, UIcallback f, void *eventdata) { gcroot<Button^> *button = new gcroot<Button^>(); EventWrapper ^evt = gcnew EventWrapper(f, eventdata); RoutedEventHandler ^handler = gcnew RoutedEventHandler(evt, &EventWrapper::Callback); *button = UI::Controls::Button(*container, gcnew String(label), handler); return button; }