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) { |