ui/wpf/UIwrapper/UIwrapper/controls.cpp

changeset 135
b9dc9cdfa23a
parent 104
3efe0210e27e
--- a/ui/wpf/UIwrapper/UIwrapper/controls.cpp	Sun Jan 22 11:48:50 2017 +0100
+++ b/ui/wpf/UIwrapper/UIwrapper/controls.cpp	Sun Jan 22 17:23:20 2017 +0100
@@ -51,7 +51,7 @@
 	}
 	
 	gcroot<UI::TextArea^> *textarea = new gcroot<UI::TextArea^>();
-	*textarea = UI::TextArea::CreateTextArea(*container, str);
+	*textarea = gcnew UI::TextArea(*container, str, true);
 
 	return textarea;
 }
@@ -104,7 +104,7 @@
 	}
 
 	gcroot<UI::TextArea^> *textfield = new gcroot<UI::TextArea^>();
-	*textfield = UI::TextArea::CreateTextField(*container, str);
+	*textfield = gcnew UI::TextArea(*container, str, false);
 
 	return textfield;
 }
\ No newline at end of file

mercurial