Crybaby

Jim Ault JimAultWins at yahoo.com
Thu Feb 26 18:32:39 EST 2009


On 2/26/09 1:53 PM, "DunbarX at aol.com" <DunbarX at aol.com> wrote:

> 
> In a message dated 2/26/09 3:34:06 PM, dave.cragg at lacscentre.co.uk writes:
> 
> 
>> My first question was why you have an openCard handler in a "stack-in-
>> use". It would seem to invite management problems, as it will trap 
>> *any* opencard message. (Apart from the fact that the Rev IDE consists 
>> of rev stacks, what would you expect to happen if you had two projects 
>> open at once?)
>> 
> Dave; 

Try using this"
edit the script of a button "frontscript" to be

on opencard
  answer "got open in front"
end opencard

Now open the Message Watcher window,
click Supress, then uncheck "not Used",
click OK

Now type into the message box
"insert the script of button "frontscript" into front

---
your testing should show some of the invisible activity that using message
paths in the development environment will create.  Look carefully at the
script of the Message Stack to see how 'open' messages are handled by user
scripts and engine events.

You should see that a number of stacks are used in Revolution in order to
build the user interface that allows the programmer to build solutions
without learning even more code.

Even switching views/functions on the message box window will fire an
opencard, because that is what is happening in the message box stack.

This may give you the answer to your situation.

Other ideas to explore are:
1 -- if "message box" is among the openstacks then

2 -- use a back script to trap opencard, send your in-use stack a
"gotOpenCard" message, then pass opencard

3  -- modify the Message Box script to send the 'gotOpenCard' to you

Hope this helps,

Jim Ault
Las Vegas

On 2/26/09 1:53 PM, "DunbarX at aol.com" <DunbarX at aol.com> wrote:

> 
> In a message dated 2/26/09 3:34:06 PM, dave.cragg at lacscentre.co.uk writes:
> 
> 
>> My first question was why you have an openCard handler in a "stack-in-
>> use". It would seem to invite management problems, as it will trap 
>> *any* opencard message. (Apart from the fact that the Rev IDE consists 
>> of rev stacks, what would you expect to happen if you had two projects 
>> open at once?)
>> 
> Dave;
> 
> Thanks for the replay
> 
> That is its purpose, to monitor the state of any card in any stack that I am
> viewing. It is a utility stack that lurks in the background for general
> development, it is NOT a component of any particular project. The information
> is 
> gathered whenever a card is opened. The IDE doesn't care about this.
> 
> It is the mainstay of my HC world, and the current build in Rev works just
> fine, very stable, though currently it has far less capability since I am
> still 
> constructing it. But I can only use it if I DO NOT open the msg box. That is a
> pain. If I ever do, all hell breaks loose, I cannot receive opencard messages
> at all, and very wierd behavior besets my open stacks. I have to quit and
> restart Rev to get back to normal. Reliably reproducable, as I said; though in
> this case it is of little comfort.
> 
> Craig Newman
> 
> 
> **************
> A Good Credit Score is 700 or Above. See yours in
> just 2 easy steps!
> (http://pr.atwola.com/promoclk/100126575x1218822736x1201267884/aol?redir=http:
> %2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668
> 072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62)
> _______________________________________________
> 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