Page 1 of 1

Window style textured/metal

Posted: Tue Mar 30, 2010 7:59 am
by Ace
I want to change the look of a window to textured - this metal style like in iTunes. How can I do that?

Re: Window style textured/metal

Posted: Sat May 01, 2010 9:16 pm
by Airr
Not 100% sure if this is what you want, but try adding this right after your window creation statement:

Code: Select all

ChangeWindowAttributes_(WindowID(0),256,0)
The first parameter is the handle to your window, the second is the attribute to add (in this case, kWindowMetalAttribute), and the third is used to remove attributes.

Unfortunately, it doesn't seem to effect any child objects which results in a very odd appearance (under SL, anyway).

A.

Re: Window style textured/metal

Posted: Tue May 04, 2010 6:52 pm
by WilliamL
@airr

I just tried your code and it appeared to make the window darker gray (no texture). The color can be changed with SetWindowColor(#Wnd,Color). Unfortunately, the gadget field background isn't transparent and shows up as a lighter gray. (even the TextGadget())

(aside)
I had to look up the spelling of the color gray and this is what I came up with:
Gray is a color.
Grey is a *colour*.

Re: Window style textured/metal

Posted: Tue May 04, 2010 7:33 pm
by Airr
I sort of remember something about PB forms not being composited under OSX.

That's probably why it doesn't quite work with my suggestion.

Sorry about that....

A.