| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: dynamically binding a Timer (was Re: Swapping Magnify Cursors on a Canvas) |
| From: | Tim Jones <tjmac at tolisgroup dot com> |
| Date: | Fri, 23 Feb 2007 16:25:25 -0700 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <mailman dot 998 dot 1172257244 dot 1046 dot realbasic-nug at lists dot realsoftware dot com> <8A57A2E6-E0F5-43DF-9DE9-8F0F2A1715E1 at xs4all dot nl> |
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
tjmac at tolisgroup dot com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: dynamically binding a Timer (was Re: Swapping Magnify Cursors on a Canvas), Charles Yeomans |
|---|---|
| Next by Date: | #if target, Lennox Jacob |
| Previous by Thread: | Re: dynamically binding a Timer (was Re: Swapping Magnify Cursors on a Canvas), Charles Yeomans |
| Next by Thread: | Listbox.CellTag problems, Christian Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |