[futurebasic] Re: [FB] Drawing to a window with the _kWindowMetalAttribute ??

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2006 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Tue, 18 Apr 2006 14:32:13 +1200
Bill Sanford wrote:

> I have a question about drawing to an appearance window with the
> _kWindowMetalAttribute set.
> The nice brushed metal look is great, but how do I set the  
> background to
> this brushed metal look so when I redraw text in the same place (a  
> timer for
> example) the metal background will be updated correctly?
> Also, when I add controls to the window, a rectangular white area  
> slightly
> bigger than the button is being drawn in white making the button  
> look bad!

Everything visible in a compositing window must be an HIView (which  
is NewSpeak for a control). See the example "Taming the Jaguar metal  
window" on the FB4 release 2 CD.

To draw text, set up a _kControlStaticTextProc appearance button. Use  
SetButtonTextString to set or change its text.

Robert P.