ui/wpf/UIwrapper/UIwrapper/controls.cpp

changeset 135
b9dc9cdfa23a
parent 104
3efe0210e27e
equal deleted inserted replaced
134:69e8e0936858 135:b9dc9cdfa23a
49 if (text) { 49 if (text) {
50 str = gcnew String(text); 50 str = gcnew String(text);
51 } 51 }
52 52
53 gcroot<UI::TextArea^> *textarea = new gcroot<UI::TextArea^>(); 53 gcroot<UI::TextArea^> *textarea = new gcroot<UI::TextArea^>();
54 *textarea = UI::TextArea::CreateTextArea(*container, str); 54 *textarea = gcnew UI::TextArea(*container, str, true);
55 55
56 return textarea; 56 return textarea;
57 } 57 }
58 58
59 UI_EXPORT void __stdcall UItextarea_set(gcroot<UI::TextArea^> *textarea, char *str) { 59 UI_EXPORT void __stdcall UItextarea_set(gcroot<UI::TextArea^> *textarea, char *str) {
102 if (text) { 102 if (text) {
103 str = gcnew String(text); 103 str = gcnew String(text);
104 } 104 }
105 105
106 gcroot<UI::TextArea^> *textfield = new gcroot<UI::TextArea^>(); 106 gcroot<UI::TextArea^> *textfield = new gcroot<UI::TextArea^>();
107 *textfield = UI::TextArea::CreateTextField(*container, str); 107 *textfield = gcnew UI::TextArea(*container, str, false);
108 108
109 return textfield; 109 return textfield;
110 } 110 }

mercurial