in reply to Re^3: Zinc ejecting type effect(maybe clipping is the right word).
in thread Zinc ejecting type effect(maybe clipping is the right word).

Info on "Balloons" would be nice too... but you have given me what I was looking for "on ejecting type effect" in your first couple of replies... And I have got it kind of working. It(the ejecting rectangle as it were) is visible though, under the transparent graident... that I want it to eject from...

Any info on starting off with just a thin line that is visible to start with, and the expanding that line(in thickness), instead of moving an alredy fixed size rectangle?

Peace...

  • Comment on Re^4: Zinc ejecting type effect(maybe clipping is the right word).

Replies are listed 'Best First'.
Re^5: Zinc ejecting type effect(maybe clipping is the right word).
by zentara (Cardinal) on Jul 09, 2006 at 12:06 UTC
    Any info on starting off with just a thin line that is visible to start with, and the expanding that line(in thickness), instead of moving an alredy fixed size rectangle?

    Just create an "Enter" binding on the thin line, and have the callback make it a different size. Set up a "Leave" binding to do the opposite. However, I can't see why you would want to do it that way. Setting up the menu as a group and moving it is far better. If you are having problems with the menu being seen, while it is in it's closed state, due to transparencies, just set the -visible=>0 on the group when it is closed, and -visible=>1 when opened.

    As a matter of fact, I was toying with the idea of stacking many such sliding hidden menus, even 100's of them, and control which one is seen by setting the -visibility on them, based on need.


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      Thanks again zentara... Have given the "-visible=>0" and 1 a go... But it still needs a bit of work... will work on it and the resize side of things too.

      Until the next time :)

        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 .