On Apr 17, 2007, at 11:36 AM, Sven E Olsson wrote: > > On 2007-04-17, at 11:28, Marc (aliacta.com) wrote: > >> >> On Apr 17, 2007, at 11:20 AM, Marc (aliacta.com) wrote: >> >>>>> 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? >>> >>> If it doesn't work in the Open event just try putting a timer there >>> instead that will call the declare a little bit later. Won't be >>> perceptible by the end user and may very likely solve the problem. >> >> I have now verified the Timer solves it: > > > Could you verify ... Both Intel and PPC CPU >1Ghz and < 1Ghz ?
Can only verify G4 > 1 GHz for now. Should you have any problems on a faster computer (which I doubt since I figure the timer won't come into action until the window has totally opened anyway) then all you'd have to do is increase the timer's period. In my tests there's no difference in behavior between period = 1 or period = 50 which tends to confirm the above. The goal of using the timer is just to give the window time to do all of its thing while it opens. Only after it has fully opened you tinker with the toolbar. Marc _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
