[futurebasic] SetWindowProxy

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2004 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sat, 25 Sep 2004 15:13:15 -0400
R.C. asked:

>If I call this...
>
>Get Window wndNum, w
>err    = fn SetWindowProxyFSSpec( w, #fs )  // valid FSSpec, known good
>file.
>
>...the icon shows up in the window title bar, but is grayed out and the
>command key will not show the path on a click of if. Is this indicative
>of some other call being needed, or something else lacking? (drag
>handler perchance?)
>
>I note that this is a deprecated call, they prefer an FSRef version be
>used. But they offer no substitute in the docs...
>
>" An alternate API that uses FSRef types is preferred "
>
>There are no FB Examples for this thing that I can see, only Toolbox
>calls show up, or a check in Appearance runtime.



Robert,

Try calling SetWindowModified with the boolean parameter set to _false.

Ken


dim as OSStatus  stat

stat = fn SetWindowModified(  WindowRef, _false )