On Feb 23, 2007, at 4:08 PM, Robert and Sigrid wrote:
> I'm wondering how one can get to the "dirty" property of the mac OS X
> windows (the bullet in the red close button), without using plug-ins,
> and maybe even declares (but my guess is the declare-route would be
> the way to go?). Tickled the taste-buds a bit more?....
The declare is simple and definitely the way to go.
Declare Function SetWindowModified Lib "Carbon" _
(window As WindowPtr, modified As Integer) As Integer
(I split that because I KNOW that the mail list mangler will split it
at some bad spot - like it did this single line of text...).
To Call it:
Err = SetWindowModified(myWindow, 1) // or send 0 to clear the dot
Tim
--
Tim Jones
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>