651070fc1d
Sometimes you want to catch an action like "clicked" from elm/button or "mouse,clicked,1" from a regular part and want to set a property like "play" on some object. In this case there is no source property to copy, so setting the destination makes sense. This was possible with Embryo, and now it is with regular "program". Sample EDC: {{{ // test.edc, compile with edje_cc and run with edje_player externals { external: "elm"; } collections { group { name: "main"; parts { part { name: "bg"; type: RECT; description { state: "default" 0.0; color: 255 255 255 255; } } part { name: "button"; type: EXTERNAL; source: "elm/button"; description { state: "default" 0.0; rel2.relative: 1.0 0.5; } } part { name: "display"; type: TEXT; description { state: "default" 0.0; color: 0 128 0 255; rel1.relative: 0.0 0.5; rel2.relative: 0.5 1.0; text { font: "Sans"; size: 16; } } } part { name: "entry"; type: EXTERNAL; source: "elm/scrolled_entry"; description { state: "default" 0.0; rel1.relative: 0.5 0.5; params.bool: "editable" 0; } } programs { program { signal: "clicked"; source: "button"; action: PARAM_SET "display" "text" "hello world!"; } program { signal: "clicked"; source: "button"; action: PARAM_SET "entry" "text" "bla!"; } } } } } }}} SVN revision: 47635 |
||
---|---|---|
legacy |