Window style textured/metal
Window style textured/metal
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
Not 100% sure if this is what you want, but try adding this right after your window creation statement:
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.
Code: Select all
ChangeWindowAttributes_(WindowID(0),256,0)
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.
Re: Window style textured/metal
@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*.
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
Re: Window style textured/metal
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.
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.