Window style textured/metal

Mac OSX specific forum
Ace
User
User
Posts: 26
Joined: Fri Apr 25, 2003 8:34 pm

Window style textured/metal

Post by Ace »

I want to change the look of a window to textured - this metal style like in iTunes. How can I do that?
User avatar
Airr
User
User
Posts: 49
Joined: Tue Oct 04, 2005 4:29 am
Contact:

Re: Window style textured/metal

Post 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.
"Programming is like Poetry. Sometimes the words just escape you..." -me, to my manager.
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: Window style textured/metal

Post 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*.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
User avatar
Airr
User
User
Posts: 49
Joined: Tue Oct 04, 2005 4:29 am
Contact:

Re: Window style textured/metal

Post 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.
"Programming is like Poetry. Sometimes the words just escape you..." -me, to my manager.
Post Reply