How to set window metal style with MaxGui???

Archives Forums/MacOS X Discussion/How to set window metal style with MaxGui???

LESTROSO(Posted 2006) [#1]
Hy to Everybody.....i've bought maxgui module but there poor instructions to use it.......I want to set a window metal style with the command createwindow....

How i can???

Thanks a lot in advance......

here the program:
---------------------------------------------------------------


Local style = WINDOW_TITLEBAR|WINDOW_RESIZABLE|WINDOW_MENU|WINDOW_STATUS


MyFirstWindow:TGadget=CreateWindow("try it", 200,200,320,240,Null,style=15)

Repeat
WaitEvent()
Until EventID()=EVENT_WINDOWCLOSE

End


Tricky(Posted 2006) [#2]
That's something I'd like too. The manual makes you believe you could, but reality shows difrently.

Oh... It's not that important.
But still....


Twitchpulse(Posted 2006) [#3]
Metal windows suck. Don't use them.


LESTROSO(Posted 2006) [#4]
If there is a possibility.....why don't use it????

In the gui manual in the program ide , show the window metal ......why the guide is very poor??????

I have tryed to guess the number style.....but nothing happend......


WendellM(Posted 2006) [#5]
In the gui manual in the program ide , show the window metal

You're right:



But neither my my PC under Windows or Linux nor my Mac looks like those examples. That's because I'm using different themes in all cases:





Since MaxGUI is system-level GUI, I think that each user's settings control how the windows & gadgets look with no way for MaxGUI to override that. I believe that it just uses whatever theme the user is using, which makes sense (since that's how the user wants to see things).


Brucey(Posted 2006) [#6]
in OSX, to create a metal window you need to create it using the NSTexturedBackgroundWindowMask style mask.
User-settings do not affect the style of OSX windows.

A new maxgui "style" would need to be added for OSX for you to pass when creating a window, to enable the metal window functionality...
Not a big job, I wouldn't think.

I would whip up some code, but my Mac is still at the docs...