How to make a square topped, round rect bottomed graphic?

David Bovill david at vaudevillecourt.tv
Wed Dec 1 10:51:32 EST 2010


Ah - that sounds good. And I guess if the two groups have the same rect and
the same gradient everything lines up nicely!

On 1 December 2010 15:17, Jan Schenkel <janschenkel at yahoo.com> wrote:

> --- On Wed, 12/1/10, David Bovill <david at vaudevillecourt.tv> wrote:
> > What is the most efficient way to
> > make this? I thought I could have a
> > polygon graphic which was opaque but not joined up and use
> > that to add
> > square corners to a roundrect graphic background - but it
> > seems that every
> > time I make it opaque it automatically joins the graphic
> > points.
> >
> > What I want to be able to do is have a vector graphic which
> > has the option
> > to have rounded corners on either or both the top and
> > bottom, whcih I can
> > script. The most efficient way I can thin of doing it at
> > the moment is to
> > have a background roundrect graphic, on top of which I can
> > place a polygon
> > line to create square corners, and a white opaque graphic
> > just inside the
> > square boundary to cover up the round corners?
> >
> > Is there a better way?
> >
>
> The easiest solution is to use two graphics and strategic grouping to take
> care of clipping:
> 1 Rectangle graphic, grouped to clip off the top or bottom half
> 1 RoundRect graphic, grouped to clip off the top or bottom half
> Then group these two groups and script a behavior to handle resizeControl
> messages and provide setProp handlers that control the inner groups.
> Play around with gradients and graphic effects to finish off.
>
> At least that's how I've done it ;-)
>
> Jan Schenkel.
> =====
> Quartam Reports & PDF Library for LiveCode
> www.quartam.com
>
> =====
> "As we grow older, we grow both wiser and more foolish at the same time."
>  (La Rochefoucauld)
>
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list