Stack is Dirty?

dunbarx at aol.com dunbarx at aol.com
Tue Apr 28 17:33:42 EDT 2015


Peter.


Yes and no. The titlebar is no different than the edge of the card window. The only thing you get is "mouseEnter" and "mouseLeave" when you move the cursor across those borders.


But since you know the mouseLoc, you can exploit that to determine if you are moving across the top edge.


Craig



-----Original Message-----
From: Peter M. Brigham <pmbrig at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Tue, Apr 28, 2015 3:49 pm
Subject: Re: Stack is Dirty?


Is there any message sent in LC when the cursor moves into the titlebar of a
stack? It occurs to me that this would be a good trigger for checking the
modifiedMark to indicate the need for saving. The workaround would be a
frontscript mouseleave handler that checks to see if the final mouseloc is x,0,
but if there is a dedicated message that would be simpler.

-- Peter

Peter
M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig

On Apr 22,
2015, at 12:22 PM, Richard Gaskin wrote:

> Ray wrote:
> 
>> I believe
there's a key word which is a property you can use to detect
>> whether a stack
has changes which have not yet been saved. It's
>> something like stackIsDirty
but I can't find it anywhere.  Does anybody
>> remember this?
> 
> There is a
Mac-only stack property, the modifiedMark, which can be used to indicate to the
user that a stack has unsaved changes (it colors the window's close button dark
red), but I know of no engine-level way to monitor for changes in the engine.
>

> Would be nice, but given the many different ways we use LC it may not be
practical.
> 
> For example, in most apps changing the text of a field would
be a change worth noting but changing the rect of a stack would not, but in LC
changing any object rect, or any other property, might warrant noting an unsaved
change.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design
and Development for the Desktop, Mobile, and the Web
>
____________________________________________________________________
>
Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
>
_______________________________________________
> use-livecode mailing list
>
use-livecode at 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 at lists.runrev.com
Please visit this url to subscribe,
unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list