Hello.

Since two hours I'm sitting on a task I thought it was done in Five
minutes. My fault of course. ;)

I have a RECT defined in my edc file:
      part {
        name: "network.button.bar";
        type: RECT;

        description {
          color: 62 62 62 255; /* No alpha yet? */
          rel1 {
            relative: 0.0 1.0;
            offset: 0 -13;
            to, "network.button";
          }
          rel2 {
            relative: 0.0 1.0;
            offset: 3.4 0;
            to, "network.button";
          }
        }
      }

I now like to change the width of this RECT from my code. I thought it would
be as easy as getting the object and change the width.

I was surprised not to find a size set method I already used to change
text. Well, then it should be best done with the evas resize function.
Something like this:

bar = edje_object_part_object_get(network_block, "network.button.bar");
evas_object_geometry_get(bar, &bar_x, &bar_y, &bar_w, &bar_h);
bar_w = bar_w * ap->strength;
evas_object_resize(bar, bar_w, bar_h);

As all this failed I digged more into Edje.h, edje_utils.c and the
wiki but found no real answer until now.

I guess I'm just to tired and do not see the obvious. Anyone care to
enlight me? :)

regards
Stefan Schmidt

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to