语言

Menu
Sites
Language
What is the component popup when long-press event is occurred on text?

Hi all,

What is the component popup when long-press event is occurred on text?

That has 'Copy', 'Cut', and so on.

I want to know what is the component and sample of that.

Thank you!

编辑者为: KJ Lee 28 10月, 2015

响应

2 回复
Jeongsu Kim

Basically, it is a hoversel widget. You can find the code from below link.

https://git.tizen.org/cgit/framework/uifw/elementary.git/tree/src/lib/elm_entry.c?h=tizen_2.4#n2435

 

And it can be override by modules and it seems that it is overrided by "ctxpopup_copypasteUI" from below link.

https://git.tizen.org/cgit/framework/uifw/elementary.git/tree/src/modules/ctxpopup_copypasteUI?h=tizen_2.4

It is a ctxpopup widget, and its style is "copypaste".

https://git.tizen.org/cgit/framework/uifw/efl-theme-tizen.git/tree/mobile/widgets/ctxpopup.edc?h=tizen_2.4#n27

 

Anyway, it is not opened to app developer so you can't modify it directly, you have to use an api.

https://developer.tizen.org/dev-guide/2.4.0/org.tizen.native.mobile.apireference/group__Entry.html#ga8b5a08cf1d11ca15e745cdd1ae834ab9

KJ Lee

Thank you for your answer.

I have to find way to use ctxpopup and horversel component.

Thank you!