언어 설정

Menu
Sites
Language
Emit focused signal from SWALLOW entry part

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.

Responses

3 댓글
Alex Dem

Hi,
In any case for entry widget you could try to add callbacks for signals "focused" ,"unfocused" programmatically  with: evas_object_smart_callback_add
Alexey.

Palitsyna

Hello,

as Alex Dem said, try to use evas_object_smart_callback_add(). Here you can find more information about it: https://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__Evas__Smart__Object__Group.html#ga18a8b179f94d21b2b09e19db11741061

and here you can find small example: https://developer.tizen.org/dev-guide/native/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/ui/efl_util.htm

Hope this will help you

Alex Dem

Hi,
Regarding your approach, try to look here:
https://developer.tizen.org/development/guides/native-application/ui/edje/edje-parts-and-blocks-0#program1
looks like no such signals "focused"/"unfocused" in predefined list of 'program' block. 
Alexey.