Emit focused signal from SWALLOW entry part

Emit focused signal from SWALLOW entry part

BY 17 Aug 2015 Native Application Development

Hi All,

I have created an .edc file for enhancing UI for entry widget. Below is my layout.

Entry Widget

This is Entry. Below is underline (Entry – SWALLOW)

There is a RECT element where inside I put one SWALLOW part for entry and IMAGE part for underline image.

 

I have added entry widget in SWALLOW part of layout. Now I want to change the underline image based on entry is focused or unfocused.

I have written below program to perform this task. But its not emitting the signal for focused. (only mouse,down,1 and mouse,up,1 is working).

Below is my programs section.

 programs {
            program { name: “entry_focused”;
               signal: “focused”; //Not Working. But I tried mouse,down,1  which worked
               source: “entry_part”;
               
               action: STATE_SET “entry_clicked” 0.0;
               target: “entry_underline”;
               
               transition: LINEAR 0.1;
            }
            program { name: “entry_unfocused”;
               signal: “unfocused”; //Not Working. But I tried mouse,up,1  which worked
               source: “entry_part”;
               
               action: STATE_SET “default” 0.0;
               target: “entry_underline”;
               
               transition: LINEAR 0.1;
            }
  }

How can I emit signal for ‘focused’ and ‘unfocused’ for swallowed entry part?

Thank you.

Written by