\hypertarget{embryo_set_text_8edc-example}{}\doxysection{embryo\+\_\+set\+\_\+text.\+edc}
This example shows how to set the text in T\+E\+XT part from embryo code.


\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{collections \{}
\DoxyCodeLine{   group \{ name: "main";}
\DoxyCodeLine{      parts \{}
\DoxyCodeLine{         part \{ name: "bg";}
\DoxyCodeLine{            type: RECT;}
\DoxyCodeLine{            description \{ state: "default" 0.0;}
\DoxyCodeLine{               color: 255 255 255 255;}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         part \{ name: "label";}
\DoxyCodeLine{            type: TEXT;}
\DoxyCodeLine{            description \{ state: "default" 0.0;}
\DoxyCodeLine{               color: 0 0 0 255;}
\DoxyCodeLine{               text \{}
\DoxyCodeLine{                  text: "Click me.";}
\DoxyCodeLine{                  font: "Sans";}
\DoxyCodeLine{                  size: 12;}
\DoxyCodeLine{               \}}
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{      \}}
\DoxyCodeLine{      programs \{}
\DoxyCodeLine{         program \{}
\DoxyCodeLine{            signal: "mouse,down,1";}
\DoxyCodeLine{            source: "label";}
\DoxyCodeLine{            script \{}
\DoxyCodeLine{               set\_text(PART:"label", "Clicked!"); }
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{         program \{}
\DoxyCodeLine{            signal: "mouse,up,1";}
\DoxyCodeLine{            source: "label";}
\DoxyCodeLine{            script \{}
\DoxyCodeLine{               set\_text(PART:"label", "Click me."); }
\DoxyCodeLine{            \}}
\DoxyCodeLine{         \}}
\DoxyCodeLine{      \}}
\DoxyCodeLine{   \}}
\DoxyCodeLine{\}}
\end{DoxyCodeInclude}
 