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