If you're still about Zentara, I have the below rectange's size variable, working to create a rectangle:

$o1 = 0; $d1 = -60; $o2 = 250; $d2 = -58; $size = [[$o1, $d1], [$o2, $d2]]; $menubox = $zinc->add('rectangle',$menugroup, # -size => $size, # [[0, -60], [250, -58] ] #le +ft/right down/up left/right down/up -filled => 1, -fillcolor => $gradset{'roundrect4ed'}, -linewidth => 0, # -linecolor => '#000000', -priority => 1, -tags => ['menu'], # -visible => 1, ); ### I am using this next bit to slide it open and am also trying to en +large the rectangle at the same time sub Slide_open{ $zinc->itemconfigure($menubox, -visible=> 1); # $zinc->itemconfigure($ejecttext, -visible=> 0); # # $zinc->itemconfigure($menuitems1, -visible=> 1); # #$zinc->itemconfigure($textoptions3, -visible=> 1); # my $count = 0; my $repeater; $repeater = $mw->repeat(25, sub{ $zinc->translate($menugroup, 0 , -3 ); # move $count++; if($count >= 37){ $repeater->cancel } } ); $zinc->bind($ejecttext, '<Enter>', \&Slide_close); # for same thing to + be used to close the above. # here is where I'm trying to resize the rectange, but as you may see, + I'm stuck... $d2 = $d2+3; $size = [[$o1, $d1], [$o2, $d2]]; # $zinc->itemconfigure($menubox, -\$size => $size); # what do I switc +h "-\$size" with/for #$mw->update; }

I normally "$zinc->itemconfigure($menubox, -visible => 1);" as it were, using a "-visible => somthing(0 or 1)", but $size has no "-visible" as it were, before it? If you get what I mean.

I'll say that again another way. How do I itemconfigure $menubox's $size, when it doesn't have a -visible, -linecolor, -filled or something, in front of it .


In reply to Re^7: Zinc ejecting type effect(maybe clipping is the right word). by Anonymous Monk
in thread Zinc ejecting type effect(maybe clipping is the right word). by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.