On Tue, 05 May 2009 01:50:40 +0200 "Marco Trevisan (Treviño)" <m...@3v1n0.net> said:
> 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. just look at the scrolled entry test in elementary_test - it scrolls to the right for the single line entires (automatically as you type or move the cursor with arrow keys) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel