Problem with Dialog Boxes??

Ralph R. Forehand ralf at dol.net
Thu May 26 14:22:59 EDT 2005


I have a main stack set up with;

1. a Button that;
  on mouseUp
  includes a few globals
  does a few calculations with the globals
  modeless "myDialogBox"
  does a few more calculations with the dialogData
  end mouseUp

2. the "myDialogBox" is a stack consisting of 1 field and
   seven buttons.
   the "OK"button script executes properly and delivers 
   the proper results to the dataDialog string

My problem is that when the button executes "myDialogBox"
comes up but the mouseUp continues on through the button 
handler - it does not stop to wait for the user input into
myDialogBox and resultant dialoData string before proceeding 
to the rest of my button script.

However, on my next button click it again brings up 
"myDialogBox" and uses the previous dialogData for the
rest of the handler.

I suspect I may have left something out of my button
handler and/or my dialog box OK button script??

I have scanned my documentation and can't pin down 
anything I've don wrong. Any help will be very much 
appreciated.

Ralph



More information about the use-livecode mailing list