From e279c7b31901ea70781d54a98dbe21b27032099f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 25 Nov 2015 22:08:14 -0500 Subject: [PATCH] Added uiButton to the WPF code. --- haiku/button.cpp | 1 - wpf/button.cpp | 58 ++++++++++++++++++++++++++++++++++++++++++++++ wpf/control.cpp | 2 +- wpf/libui.msbuild | 1 + wpf/uipriv_wpf.hpp | 5 +++- wpf/window.cpp | 16 +++++++------ wpf/xtest.c | 4 ++++ wpf/xtest.go | 7 ++++++ 8 files changed, 84 insertions(+), 10 deletions(-) create mode 100644 wpf/button.cpp diff --git a/haiku/button.cpp b/haiku/button.cpp index ff65bbc2..7566c502 100644 --- a/haiku/button.cpp +++ b/haiku/button.cpp @@ -61,7 +61,6 @@ uiButton *uiNewButton(const char *text) b->button = new BButton(text, msg); - // TODO hook up events uiButtonOnClicked(b, defaultOnClicked, NULL); uiHaikuFinishNewControl(b, uiButton); diff --git a/wpf/button.cpp b/wpf/button.cpp new file mode 100644 index 00000000..eedea042 --- /dev/null +++ b/wpf/button.cpp @@ -0,0 +1,58 @@ +// 25 november 2015 +#include "uipriv_wpf.hpp" + +struct uiButton { + uiWindowsControl c; + gcroot