On Wed, Apr 8, 2009 at 4:09 AM, Carsten Haitzler <[email protected]> wrote:
> On Tue, 7 Apr 2009 18:20:25 +0200 PaulTT <[email protected]> said:
>
>> is it possible to insert text into an icon?
>> or also make the icon itself change some parts based on a time change?
>>
>> (i'd like to make up a calendar icon, with day changing)
>
> absolutely you can.
>
i was positive about it :)
i already tried, but probably i'm doing something wrong....
that's what i've done:
i copied the clock_cb script into the icon's edc file;
i assigned -for example- the value of day to a variable, let's say:
snprintf(buf, 10, "%i", v);
and then i invoked set_state:
set_state(PART:"day", buf, 0.0);
"day" is a part i defined after the IMAGE icon part, in this way:
part
{
name: "day";
type: TEXT;
mouse_events: 0;
description
{
state: "default" 0.0;
aspect: 1.00 1.00;
visible: 1;
max: 128 128;
color: 0 0 0 255; /* black */
text {
align: 0.0 0.0;
font: "Sans";
size: 16;
min: 0 1;
}
}
}
but there's something in the way i'm missing, it seems, since it
doesn't work.... :(((((
any hint?
thank you very much :))))
ptt
PS to raster: sorry, but reply on gmail made me reply to you in pvt,
not my intention :(
------------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users