Sending mouseUp

Peter Haworth pete at lcsql.com
Wed Mar 20 14:55:29 EDT 2013


OK, that makes sense, but how come I can set the text of option menus,
fields, etc without a problem if they don't exist yet?  More to the point,
why isn't there some sort of runtime error if I try to address a control
that doesn't exist yet (Monte?)?  That's what I mean about preOpenCard
being unreliable.

Anyway, I have a workaround so all's well that ends well.

Pete
lcSQL Software <http://www.lcsql.com>


On Wed, Mar 20, 2013 at 11:21 AM, Mark Wieder <mwieder at ahsoftware.net>wrote:

> Peter Haworth <pete at ...> writes:
>
> > I guess I'm just very suspicious of anything other than really
> > straightforward commands in preOpenCard now.
>
> Well, here's the thing. It's *pre*OpenCard because the card and its
> controls
> haven't been instantiated yet. So sending a message to a control that
> doesn't
> officially exist shouldn't work. The script is there in memory, so you can
> call
> handlers in it, but it's not yet associated with an on-screen object. The
> pre
> handlers exist so that you can set things up before the objects take form.
>
> --
>  Mark Wieder
>  mwieder at ahsoftware.net
>
>
> _______________________________________________
> 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