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


\begin{DoxyCodeInclude}
1 collections \{
2    group \{ name: "main";
3       parts \{
4          part \{ name: "bg";
5             type: RECT;
6             description \{ state: "default" 0.0;
7                color: 255 255 255 255;
8             \}
9          \}
10          part \{ name: "label";
11             type: TEXT;
12             description \{ state: "default" 0.0;
13                color: 0 0 0 255;
14                text \{
15                   text: "Click me.";
16                   font: "Sans";
17                   size: 12;
18                \}
19             \}
20          \}
21       \}
22       programs \{
23          program \{
24             signal: "mouse,down,1";
25             source: "label";
26             script \{
27                set\_text(PART:"label", "Clicked!"); 
28             \}
29          \}
30          program \{
31             signal: "mouse,up,1";
32             source: "label";
33             script \{
34                set\_text(PART:"label", "Click me."); 
35             \}
36          \}
37       \}
38    \}
39 \}
\end{DoxyCodeInclude}
 