On 6/19/13 2:11 AM, Terry Judd wrote:

One more thing - if you have a special clean up routine then you'll need to 
handle the user quitting using a keyboard shortcut (cmd-Q) separately on OSX. 
Something like this...

on appleEvent pClass,pID,pSender
    switch (pClass & pID)
       case "aevtquit"
          myShutdownRoutine
          pass appleEvent
          break
       default
          pass appleEvent
          break
    end switch
end appleEvent

Just curious why you'd need an AppleEvent. Wouldn't a shutdown handler be enough? I've never had to use an AppleEvent for that, but would like to know what situation would require it.


Now, if only someone knew the answer to my hilitedLine question. (Nudge,
nudge.)

Not sure what's going on there. Have you tried an opencard handler? Or tried 
using a 'send' to trigger the change?

That's what I'd do too. The engine does some internal housekeeping when it opens a card or a stack, and one of those things is automatic focus and automatic hiliting of list fields. Sometimes that gets in the way. Sending a message in time during preOpenCard to a handler that sets the hilite usually works because it happens after the automatic stuff completes.

--
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

Reply via email to