Ben, I use the exact same declare, and have no trouble with it, HOWEVER...

put it in your windows PAINT event instead of its OPEN event

Works fine for me - 400Mhz G4 through seven different generations to a MacBook 
Pro....

- Tom

 
On Tuesday, April 17, 2007, at 01:24PM, "Ben Blake" <[EMAIL PROTECTED]> wrote:
>G'Day!
>
>I am using the following declare in my Window Open Event to change my
>Toolbar to the unified style:
>
>Declare Sub ChangeWindowAttributes Lib "Carbon" (win as WindowPtr,
>setAttribs as integer, removeAttribs as integer)
>ChangeWindowAttributes self, 2^7 + 2^11 + 2^18, 0
>
>Now I am getting the unified toolbar ok, however my windows background
>has turned to white (instead of the usual gray!!). Now if I change
>this declare to be activated by a checkbox then everything works as
>expected.
>
>Should this go in the Open event or somewhere else? Has anyone else
>gotten this to work?
>
>I tried this on both 2007r1 and r2 on an Intel Mac (universal and PPC)
>on 10.4.9 in debug mode only.
>
>cya
>Ben
>_______________________________________________
>Unsubscribe or switch delivery mode:
><http://www.realsoftware.com/support/listmanager/>
>
>Search the archives:
><http://support.realsoftware.com/listarchives/lists.html>
>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to