Re: Prevent openStack message

2012-03-23 Thread Bill Vlahos
Mark,

Yes I can. In fact, that is how I'm seeing it in the first place. I have an 
openStack handler in the front script. My example script doesn't normally 
generate an openStack message but LiveCode did.

Thanks,
Bill

On Mar 22, 2012, at 10:47 PM, Mark Wieder wrote:

 I'm writing a plugin for the LiveCode IDE that triggers when a
 stack is opened. In the case of my own stack I don't want to trigger
 it when all I'm doing is opening up a dialog box in my own plugin.
 
 Hmmm... can you catch openStack in a frontscript and check for the
 target there?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Prevent openStack message

2012-03-23 Thread Bob Sneidar
I have run into a similar thing before, triggering an openStack handler when I 
did not want to. I think the only real solution to what you are doing here is 
to test conditionally in your frontScript openstack handler for your particular 
conditions, and pass openStack messages when your conditions are not met. I 
don't think stopping openStack in a frontScript is a very good idea. 

Bob


On Mar 22, 2012, at 11:09 PM, Bill Vlahos wrote:

 Mark,
 
 Yes I can. In fact, that is how I'm seeing it in the first place. I have an 
 openStack handler in the front script. My example script doesn't normally 
 generate an openStack message but LiveCode did.
 
 Thanks,
 Bill
 
 On Mar 22, 2012, at 10:47 PM, Mark Wieder wrote:
 
 I'm writing a plugin for the LiveCode IDE that triggers when a
 stack is opened. In the case of my own stack I don't want to trigger
 it when all I'm doing is opening up a dialog box in my own plugin.
 
 Hmmm... can you catch openStack in a frontscript and check for the
 target there?
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Prevent openStack message

2012-03-23 Thread J. Landman Gay

On 3/23/12 1:09 AM, Bill Vlahos wrote:

Yes I can. In fact, that is how I'm seeing it in the first place. I
have an openStack handler in the front script. My example script
doesn't normally generate an openStack message but LiveCode did.


Trap the openStack message and see if the target is a stack that belongs 
to your plugin. Then pass it or not, depending. I wouldn't try to stop 
the message, I'd just deal with it.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Prevent openStack message

2012-03-22 Thread Mark Wieder
Bill-

Thursday, March 22, 2012, 8:56:14 PM, you wrote:

 I'm trying to suppress openStack messages being sent. Lock messages doesn't 
 prevent it.

 This script generates an openStack message. How can I prevent
 that for the duration of the answer command?

 on mouseUp
lock messages
answer Hello
 end mouseUp

 What I'm trying to do is know when a stack that isn't part of my plugin is 
 opened?

Sorry, I'm really confused by this. Do you not want the answer dialog
to open? Do you want the answer dialog to be modal? Are you trying to
prevent stacks from being opened or do you just want to know that a
stack has opened?

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Prevent openStack message

2012-03-22 Thread Bill Vlahos
Mark,

I want the dialog box to open but not send an openStack message.

I'm writing a plugin for the LiveCode IDE that triggers when a stack is opened. 
In the case of my own stack I don't want to trigger it when all I'm doing is 
opening up a dialog box in my own plugin.

Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On Mar 22, 2012, at 10:16 PM, Mark Wieder wrote:

 Bill-
 
 Thursday, March 22, 2012, 8:56:14 PM, you wrote:
 
 I'm trying to suppress openStack messages being sent. Lock messages doesn't 
 prevent it.
 
 This script generates an openStack message. How can I prevent
 that for the duration of the answer command?
 
 on mouseUp
   lock messages
   answer Hello
 end mouseUp
 
 What I'm trying to do is know when a stack that isn't part of my plugin is 
 opened?
 
 Sorry, I'm really confused by this. Do you not want the answer dialog
 to open? Do you want the answer dialog to be modal? Are you trying to
 prevent stacks from being opened or do you just want to know that a
 stack has opened?
 
 -- 
 -Mark Wieder
 mwie...@ahsoftware.net
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Prevent openStack message

2012-03-22 Thread Mark Wieder
Bill-

Thursday, March 22, 2012, 10:36:03 PM, you wrote:

 I'm writing a plugin for the LiveCode IDE that triggers when a
 stack is opened. In the case of my own stack I don't want to trigger
 it when all I'm doing is opening up a dialog box in my own plugin.

Hmmm... can you catch openStack in a frontscript and check for the
target there?

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode