Wilful misuse of Revolution commands

Jim Ault JimAultWins at yahoo.com
Fri Apr 21 11:23:49 EDT 2006


Try a hidden 'shared' field that appears with the string, which will be the
same on all cards, and the string will only occur once in the stack.

...of course then is told to hide after elapsed time.

Enhancement => only show the user line 1 of this field, then keep a running
list of the errors in line 2 to whatever for tracking errors the user
experiences.

Field can be transparent, change position on the screen depending on the
message, font color, style, etc.

Setup should be that the errorMessge fld is in a bg group, highest layer
level so it will superimpose, shared text is set ON.  Now you can set the
field to any message at any time, actually moving through cards displaying
the same message in the same location.

Works for status messages you want to always appear, as well as a list of
card names for clickable navigation.

Jim Ault
Las Vegas


On 4/21/06 2:30 AM, "Francis Nugent Dixon" <effendi at wanadoo.fr> wrote:

> Hi from Paris,
> 
> I do a lot of data entry in my multiple card stacks.
> In order to speed up execution, if I didn't like the
> entered data, I always coded :
> 
>    --  Error routine
>    --
>    push card
>    go to card 1
>    show field "ErrorMessage1"
>    wait 2 secs
>    hide field "ErrorMessage1"
>    pop card
>    -- etc.
> 
> This always pained me, 'cos it's not "elegant"
> I didn't have the ErrorMessages in the data cards
> for the obvious reason that they would waste space.
> When I found (thanks Sarah and William) the pop-up
> menu command, I thought I would use it for another
> purpose (whereby wilful misuse):
> 
>    on mouseUp
>    put field "ErrorMessage1" into button "MyErrorMenu"
>    popup button "MyErrorMenu" at the loc of field "xxx"
>    wait 2 secs
>    click at loc of field "xxx" -- to make the menu go away !
>    end mouseUp
> 
> OK !  I hadn't read the small print of the "popUp" command
> which clearly states "While the popup menu is displayed,
> the handler pauses." So THAT doesn't work !
> Back to the drawing board (Sigh !)
> 
> Has anybody got any ideas about displaying an error
> message in a card for a few seconds (without having
> to click - I'm an anti-click fiend !), where the message
> doesn't take up space in the card ?
> 
> -Francis
> 
> "Nothing should ever be done for the first time !"
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list