Re: Answer dialog replacement

2001-05-23 Thread Karl Becker

   Everything works fine with the handler, except for one thing - how
  could I get the value of the button the user clicks on?  I'd ideally
  like to use this handler just like the answer command works, but I
  don't know how to pause execution of the script that calls
  displayMessage.
  Any ideas on how, or even if, this is possible?  Thanks!

I'm not sure I understand what the value of the button means but if
you want to know which button was clicked that should be returned in
it.

The problem I have is not with putting the value of the button 
(sorry, should've just said the name of the button) into it but 
rather with halting operating of a script until a button in this 
group is clicked.  The script to display some message and get a 
returned value would look like this:

on doStuff
  displayMessage theMessage,Cancel,OK
  put it into theChoice
end doStuff

However, it is empty after execution of displayMessage, because all 
that displayMessage does is make a group and put it into the middle 
of the stack for the user to click on it - I need to figure out some 
way to pause execution of the script so that it actually contains 
the name of the button clicked.
...hope I'm explaining this well enough, I've barely been able to get 
my ideas over on e-mail right now, I'm having eternal brain farts 
right now  :-P
-- 
Karl Becker, KB Productions - http://www.karlbecker.com
Featuring:New Tricks, Tiger's Eye Pub, and The Fishin' Hole

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Answer dialog replacement

2001-05-23 Thread andu

Karl Becker wrote:
 
Everything works fine with the handler, except for one thing - how
   could I get the value of the button the user clicks on?  I'd ideally
   like to use this handler just like the answer command works, but I
   don't know how to pause execution of the script that calls
   displayMessage.
   Any ideas on how, or even if, this is possible?  Thanks!
 
 I'm not sure I understand what the value of the button means but if
 you want to know which button was clicked that should be returned in
 it.
 
 The problem I have is not with putting the value of the button
 (sorry, should've just said the name of the button) into it but
 rather with halting operating of a script until a button in this
 group is clicked.  The script to display some message and get a
 returned value would look like this:
 
 on doStuff
   displayMessage theMessage,Cancel,OK
   put it into theChoice
 end doStuff
 
 However, it is empty after execution of displayMessage, because all
 that displayMessage does is make a group and put it into the middle
 of the stack for the user to click on it - I need to figure out some
 way to pause execution of the script so that it actually contains
 the name of the button clicked.
 ...hope I'm explaining this well enough, I've barely been able to get
 my ideas over on e-mail right now, I'm having eternal brain farts
 right now  :-P

No problem, its an epideny;-) I think if you open a modal window like
the answer dialog the script will halt until you close the window
usually returning the it. If I'm missing the point send me a stack off
the list.

 --
 Karl Becker, KB Productions - http://www.karlbecker.com
 Featuring:New Tricks, Tiger's Eye Pub, and The Fishin' Hole
Andu

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




RE: Answer dialog replacement

2001-05-23 Thread Monte Goulding

Everything stops and waits for the response with the answer dialog because
it is modal. You may need to use messages instead.



Everything works fine with the handler, except for one thing - how
   could I get the value of the button the user clicks on?  I'd ideally
   like to use this handler just like the answer command works, but I
   don't know how to pause execution of the script that calls
   displayMessage.
   Any ideas on how, or even if, this is possible?  Thanks!
 
 I'm not sure I understand what the value of the button means but if
 you want to know which button was clicked that should be returned in
 it.

 The problem I have is not with putting the value of the button
 (sorry, should've just said the name of the button) into it but
 rather with halting operating of a script until a button in this
 group is clicked.  The script to display some message and get a
 returned value would look like this:

 on doStuff
   displayMessage theMessage,Cancel,OK
   put it into theChoice
 end doStuff

 However, it is empty after execution of displayMessage, because all
 that displayMessage does is make a group and put it into the middle
 of the stack for the user to click on it - I need to figure out some
 way to pause execution of the script so that it actually contains
 the name of the button clicked.
 ...hope I'm explaining this well enough, I've barely been able to get
 my ideas over on e-mail right now, I'm having eternal brain farts
 right now  :-P
 --
 Karl Becker, KB Productions - http://www.karlbecker.com
 Featuring:New Tricks, Tiger's Eye Pub, and The Fishin' Hole

 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Answer dialog replacement

2001-05-22 Thread Karl Becker

I'm attempting to replace the answer dialog with a separate handler 
in my stack.  (I'll call it displayMessage)
This handler, which I've created and works fine, makes a group that 
consists of a few graphics, the text the user is prompted with, and 
whatever choices is passed to it.  It moves the group to the middle 
of the screen
The reason for doing this is that a graphic inside the group has a 
blend ink and plays with the card's visual appearance when it appears.
Everything works fine with the handler, except for one thing - how 
could I get the value of the button the user clicks on?  I'd ideally 
like to use this handler just like the answer command works, but I 
don't know how to pause execution of the script that calls 
displayMessage.
Any ideas on how, or even if, this is possible?  Thanks!
-- 
Karl Becker, KB Productions - http://www.karlbecker.com
Featuring:New Tricks, Tiger's Eye Pub, and The Fishin' Hole

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




RE: Answer dialog replacement

2001-05-22 Thread Monte Goulding

Script in the group:

on mouseUp 
 if word 1 of the target is button
 then put the short name of the target into it
end mouseUp

 I'm attempting to replace the answer dialog with a separate handler 
 in my stack.  (I'll call it displayMessage)
 This handler, which I've created and works fine, makes a group that 
 consists of a few graphics, the text the user is prompted with, and 
 whatever choices is passed to it.  It moves the group to the middle 
 of the screen
 The reason for doing this is that a graphic inside the group has a 
 blend ink and plays with the card's visual appearance when it appears.
 Everything works fine with the handler, except for one thing - how 
 could I get the value of the button the user clicks on?  I'd ideally 
 like to use this handler just like the answer command works, but I 
 don't know how to pause execution of the script that calls 
 displayMessage.
 Any ideas on how, or even if, this is possible?  Thanks!
 -- 
 Karl Becker, KB Productions - http://www.karlbecker.com
 Featuring:New Tricks, Tiger's Eye Pub, and The Fishin' Hole
 
 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.
 
 

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.