On Thu, Apr 9, 2009 at 10:17 PM, Carsten Haitzler <ras...@rasterman.com> wrote:
> On Thu, 9 Apr 2009 15:31:31 -0300 Gustavo Sverzut Barbieri
> <barbi...@profusion.mobi> said:
>
>> On Thu, Apr 9, 2009 at 3:00 PM, Sergey Semernin
>> <sergey.semer...@gmail.com> wrote:
>> > Hello, All.
>> >
>> > As I see only TEXTBLOCK element have property 'entry_mode', to set it
>> > editable or no. This is using in elm_entry.c.
>> > Many other widgets contain TEXT element, such as 'e.text.label', but seems
>> > no similar property in it. Therefore, no basic callbacks are initialized
>> > when creating. And no way to change entry_mode in runtime.
>> > What shall I do? Simply make 'e.text.label' to TEXTBLOCK type? Or any else
>> > is possible? For example make similar callbacks for 'e.text.label' when
>> > edit, but this is a lot of duplicate code...
>>
>> just change it to textblock, add new signals to make it editable
>> (enter edit mode). You can choose to when the signal to become
>> editable is sent to edje object you hide the TEXT part and show a new
>> one with TEXTBLOCK already in edit mode.
>
> nooo no no. don't change. have 2 parts. the e.text.label - a normal text part
> AND a TEXBLOCK part with entry_mode that is normally not visible until you are
> "editing" a name. when editing goes on, set the e.text.edit part (lets call it
> that for now) to the current label, hides the only e.text.label, (it needs to
> set focus on the icon object etc.) and thus... you dont mess with the ability
> to truncate text "label..." and still can edit. :)

yes, i listed that as second option, just need to be aware that the
filename given to TEXTBLOCK need to be escaped and TEXT do not. Same
when you get value from it, need to unescape.


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to