Scrolling groups get messed up after saving

Lynch, Jonathan BNZ2 at CDC.GOV
Fri Feb 4 10:59:38 CST 2005


Actually - just tested it, and handling the rawkeydown message in the
stack script slows down typing speed too much. Using commandKeyDown (for
windows users) works well for saving by ctrl-s. I am not sure whether
controlKeyDown or commandKeyDown would be appropriate for Mac users.

The following script in the stack script seems to work quite well:

on commandKeyDown theKey
  if theKey = "S" then
    set the cursor to watch
    lock screen
    save this stack
    unlock screen
  else
    pass commandKeyDown
  end if
end commandKeyDown

Cheers,

Jonathan

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Lynch,
Jonathan
Sent: Friday, February 04, 2005 11:35 AM
To: jacque at hyperactivesw.com; How to use Revolution
Subject: RE: Scrolling groups get messed up after saving

This is interesting...

The suggested script does not work if it is used in a savestackrequest
handler...

However, even having an empty savestackrequest handler still results in
the same problem - meaning that the visual garbage shows up prior to the
savestackrequest message being generated.

On the otherhand, the suggest script works perfectly is the save is done
through a button with a mouseup handler. Actually, it turns out that the
line 'go this card' is not necessary.

The following script, executed from a button, does not produce visual
garbage

On mouseUp
Set the cursor to watch
Lock screen
Save this stack
Unlock screen
End mouseUp

I guess (aint tried it yet), if the user was using ctrl-s to save, it
would need to be trapped and the above script executed with a rawkeydown
handler, before it gets to the savestackrequest point in the saving
process.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of J. Landman
Gay
Sent: Friday, February 04, 2005 11:00 AM
To: How to use Revolution
Subject: Re: Scrolling groups get messed up after saving

On 2/4/05 8:47 AM, Lynch, Jonathan wrote:

> I am sure there must be some way to refresh the card after saving so
> that the user never sees this problem. I would hate to give a user a
> stack that produces visual garbage.

I haven't tried it, but maybe this would work:

lock screen
save this stack
go this card
unlock screen

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


More information about the use-livecode mailing list