with messages alternatives?
b.xavier at internet.lu
Thu May 26 14:03:52 EDT 2005
Not hard at all - this is kind of how GIM works
Again, this may be overkill but it should handle any situation...
You can also add event filters if you want...
-- my control or stack's script
-- use on idle in a card or stackinuse if you dare... Not recommended but it
if thistime is empty then put 60 into thistimeloop
send "doevent" to stack "eventdoer" -- has a script that sends all events
to a frontscript stack that passes each event back down in the queue
if the hilite of button "suspendDoEvents" then exit doidle
send "doidle" to me in thistimeloop seconds
-- frontscript script
on doevents objects
if what is empty then
put "metacard,this stack,this background,this card,the selectedfield,this
focusedobject,the target" into objects
put Eventlist() into eventList
repeat for each line o in objectlist
repeat for each line e in eventlist
send o to e
return "mouseup,mousedown, etc"
Off the top of my head... The taoo way ;)
So it's possible i completely misinterpreted it all...
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of N
> Sent: Thursday, May 26, 2005 19:33
> To: use-revolution at lists.runrev.com
> Subject: with messages alternatives?
> Has any one discovered a method for implementing something
> simular to the DoEvents method on Visual Basic? I am fully
> aware of the message programming model and using send it time
> and wait with messages. It is not necessary to explain it!
> Description of DoEvents:
> DoEvents simpily allows all other other pending
> events/handlers to execute at a specific time during a long
> process then return to the execution point after they complete.
> Any resemblance between the above views and those of my
> employer, my terminal, or the view out my window are purely
> Any resemblance between the above and my own views is
> The question of the existence of views in the absence of
> anyone to hold them is left as an exercise for the reader.
> The question of the existence of the reader is left as an
> exercise for the second god coefficient.
> (A discussion of non-orthogonal, non-integral polytheism is
> beyond the scope of this article.)
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the Use-livecode