diff --git a/examples/web/TextArea.cpp b/examples/web/TextArea.cpp index 4855d6ae84..d1fadadd57 100644 --- a/examples/web/TextArea.cpp +++ b/examples/web/TextArea.cpp @@ -23,11 +23,6 @@ int main() { doc << "

Testing!

"; - out1_font.SetColor("green"); - out2_font.SetColor("blue"); - text_reflect << out1_font; - text_reflect2 << out2_font; - text_area.SetCallback([](const std::string & in){ text_area.SetText("Changed!"); }); @@ -46,4 +41,10 @@ int main() }, "Update" ) << "
" << text_reflect << "

" << text_reflect2; + + out1_font.SetColor("green"); + out2_font.SetColor("blue"); + text_reflect << out1_font; + text_reflect2 << out2_font; + }