private:
virtual Evas_Object *onCreate(Evas_Object *parent) override;
+ static void onFocused(void *data, Evas_Object *obj, void *event_info);
+ static void onUnfocused(void *data, Evas_Object *obj, void *event_info);
void onChanged(Evas_Object *obj, void *event_info);
ChangedCallback m_OnChanged;
elm_entry_text_style_user_push(entry, "DEFAULT='font=Tizen:style=Light font_size=76 color=#fff align=center'");
eext_entry_selection_back_event_allow_set(entry, EINA_TRUE);
+ evas_object_smart_callback_add(entry, "focused",
+ &KeypadEntry::onFocused, this);
+ evas_object_smart_callback_add(entry, "unfocused",
+ &KeypadEntry::onUnfocused, this);
evas_object_smart_callback_add(entry, "changed",
makeCallback(&KeypadEntry::onChanged), this);
return entry;
}
+void KeypadEntry::onFocused(void *data, Evas_Object *obj, void *event_info)
+{
+ edje_color_class_set("entry/default/cursor", 250, 250, 250, 255, 0, 0, 0, 0, 0, 0, 0, 0);
+}
+
+void KeypadEntry::onUnfocused(void *data, Evas_Object *obj, void *event_info)
+{
+ edje_color_class_set("entry/default/cursor", 0, 184, 230, 110, 0, 0, 0, 0, 0, 0, 0, 0);
+}
+
void KeypadEntry::onChanged(Evas_Object *obj, void *event_info)
{
if (m_OnChanged) {