Carsten Haitzler (The Rasterman) wrote:
> On Thu, 30 Apr 2009 17:35:15 -0300 Gustavo Sverzut Barbieri
> <barbi...@profusion.mobi> said:
> 
>> On Thu, Apr 30, 2009 at 3:56 PM, Tomaz Noleto <tnol...@gmail.com> wrote:
>>> Hi,
>>>
>>> I am trying to use TEXTBLOCK with entry_mode EDITABLE, but I am facing
>>> a problem when the typed text gets bigger than the part size. I was
>>> expecting that the text could scroll automatically to the left and the
>>> cursor would not cross the part's boundaries. Is there any properties
>>> that I could set in edje to get this behavior? should I implement it
>>> manually in my app? Or should it be a built-in feature to be done in
>>> edje backend?
>> edje is not a widget set, but basic building blocks. You need to
>> implement the scroll yourself, see elm_entry.c
> 
> what he said - elm_entry.c tho doesnt auto-scroll. put the entry in a scroller
> (like the scrolled entry test in test.c does in elementary) and bingo. try
> elementary_test (yes - that list is scrollable - drag it).
> 

In the single-line mode, the only way I got to make it scroll
automatically to the right was to enable the line wrap and so:

        et = elm_entry_add(win);
        elm_entry_single_line_set(et, TRUE);
        elm_entry_editable_set(et, TRUE);
        elm_entry_line_wrap_set(et, TRUE);

I don't know, why but also using elementary_test this is the only way to
make the single-line entry to scroll as soon as you write (so to make
the scroller follow the cursor).
By the way, unfortunately this doesn't work with the password fields.

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to