Visual Effect command

Pete pete at mollysrevenge.com
Mon Jun 27 20:22:10 EDT 2011


Thanks Ken, I'll give it a try.  Always leery of trying anything out of the
ordinary with modal windows since LC hangs up very easily on any problems
with them!

I do actually need a modal window though so not sure if this will do it or
not.  I guess the closest way I can describe this is for the modal window to
act like a Mac sheet but descend down from a control on the card rather than
the window title bar.

It would be nice to find a way to make this work but it's definitely
window-dressing (pun entirely intended)
Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Mon, Jun 27, 2011 at 4:49 PM, Ken Ray <kray at sonsothunder.com> wrote:

> > Looks like the show and hide commands allow you to name a stack, but
> there's
> > no way to specify that the stack should be modal, which is what I need.
>  I
> > thought about trying "go invisible stackname as modal" followed by the
> show
> > command but I think the script would stop execution at the go command so
> the
> > show would never happen until after I return from the modal stack.
>
> Actually, Pete, you found the one way to create a *non-modal* modal... it's
> a way I've used many times to show a modal progress bar that does not block
> script execution:
>
>  put "Before"
>  go invisible stack "MyModal" as modal
>  set visible of stack "MyModal" to true
>  put "After"
>
> --> Puts "Before", opens the modal, then immediately puts "After" into the
> message box, and the modal is still open
>
> So perhaps it *would* work for you after all...
>
> Ken
>
>
> > Pete
> > Molly's Revenge <http://www.mollysrevenge.com>
> >
> >
> >
> >
> > On Mon, Jun 27, 2011 at 1:00 PM, Scott Rossi <scott at tactilemedia.com>
> wrote:
> >
> >> One way to restrict a visual effect to a portion of the screen is to use
> >> the
> >> effect with hide/show:
> >>
> >>  show grp 1 with visual push down
> >>  hide grp 1 with visual push up
> >>
> >> However, this will not work with overlapping objects.  You would have to
> >> make sure the affected object can be displayed independently of objects
> >> around it.  Otherwise, you'll have to physically move the object (see
> the
> >> move command).
> >>
> >> Regards,
> >>
> >> Scott Rossi
> >> Creative Director
> >> Tactile Media, UX Design
> >>
> >>
> >> Recently, Pete wrote:
> >>
> >>> I would like to have a modal stack come into view by "sliding down"
> from
> >>> behind a control on the calling form.  I found the visual effects
> command
> >>> but when I use that (with scroll down), all of the existing window
> >> scrolls
> >>> down, not just the modal window.  Seems to work the same for other
> types
> >> of
> >>> visual effect.  Any ideas on how to make that work?  I'd also like to
> >> make
> >>> the modal window slide back up behind the control when I close it, but
> >> one
> >>> step at a time!
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> 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
> >>
> >>
> > _______________________________________________
> > 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
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
>
>
> _______________________________________________
> 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