On Fri, Feb 25, 2011 at 5:58 PM, Benjamin Flanagin <[email protected]> wrote:
> Subject says it all.
> I've added an entry box to my edje file using editje, but I am having
> trouble finding documentation on how to retrieve or add text to the entry
> box.   I have tried elm_entry_entry_set and also edje_edit_part_text_set.
> Neither seem to work. I have also tried searching the api doc on the website
> under both elm and edje and have found nothing that sounds promising.
>
>  What am I missing?

Editje uses the EXTERNAL part type concept. You need then to acquire
the widget using

   Evas_Object *edje_object_part_external_object_get(edje, part_name);

Then call whatever you like, such as elm_entry_entry_set(). Well,
"whatever you want" is not actually correct, you should not modify
properties that Edje manages such as: color, position, size and
clipper. Do not delete it as well.

Alternatively you can set properties know to this external object with:

    Edje_External_Param param = {
        "text",
         EDJE_EXTERNAL_PARAM_TYPE_STRING,
         0, 0.0,
         "Your String Here"
    };
    edje_object_part_external_param_set(edje, part_name, &param);

Yeah, C does not make it beautiful, but it's easy enough. You may
wonder how to discover the parameter name and type, although I wrote
most of it, I always forget so I wrote edje_external_inspector:

       # syntax: edje_external_inspector <module> -t <type_name>
       edje_external_inspector elm -t elm/scrolled_entry

Of course that's the same as you'd get in Editje, so if you see a name
"text" there of type "string" you know what to do.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to