Rev.101 Revisited... Background groups
docmann
docmann at gmail.com
Wed Apr 27 17:39:23 EDT 2005
Thanks for the suggestions, Dan.
I'll try that with a sample stack to test the functionality. The UI
has become extremely complex already which is the reason for the
re-write (adding tabs and more features). One way or another, I'm sure
I'll get it figured out.
> Off-hand, one *possible* way of doing this (if I'm understanding
> correctly what you want, which is no guarantee)
...
...
>
> Maybe someone more awake than I am can offer a cleaner solution.
Heh heh... I'm sure I could have offered a better description, but I
was still 3/4 asleep myself when I posted. Writing code and asking Rev
questions between 4 - 5:30 am without the benefit of a full pot of
coffee is a sad, sad, sad thing indeed. ;)
Appreciate the help!
-Doc-
On 4/27/05, Dan Shafer <revdan at danshafer.com> wrote:
> Off-hand, one *possible* way of doing this (if I'm understanding
> correctly what you want, which is no guarantee) would be to:
>
> 1. Use a group with background behavior for the controls.
> 2. Have each control call a function or handler with the same name on
> all tabs.
> 3. Put the *scripts* for those handlers at the card level rather than
> the background level.
>
> Pressing a button in the group might, e.g., send the message
> "iGotClicked" in all cases (because you cannot have different scripts
> for the objects in a single group without doing a lot of conditional
> processing as far as I can come up with off the top of my head). But on
> one card, the iGotClicked handler does one thing and on another card,
> the handler of the same name does something completely different.
>
> Make sense?
>
> Maybe someone more awake than I am can offer a cleaner solution.
>
> On Apr 27, 2005, at 3:30 AM, docmann wrote:
>
> >
> > Basically, I need the same control interface (UI) for each of my tabs,
> > but with different scripting actions for each card.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dan Shafer, Co-Chair
> RevConWest '05
> June 17-18, 2005, Monterey, California
> http://www.altuit.com/webs/altuit/RevConWest
>
>
More information about the use-livecode
mailing list