::tk::unsupported::MacWindowStyle style <win> <style>or
::tk::unsupported::MacWindowStyle style <win> <class> <attribute list>In the first form, <style> uses pre-Appearance Manager styles, which are deprecated. They equate to some variation of the 2nd, more general form, which should be used instead. They can be any of
- documentProc == document standardDocument
- dBoxProc == modal none
- plainDBox == plain none
- altDBoxProc == altPlain none
- movableDBoxProc == moveableModal none
- zoomDocProc == moveableModal {closeBox resizable horizontalZoom verticalZoom}
- floatProc == floating none
- floatZoomProc == floating {closeBox resizable horizontalZoom verticalZoom}
- floatSideProc == floating {closeBox resizable horizontalZoom verticalZoom sideTitlebar}
- ...
- alert
- altPlain
- document
- drawer
- floating
- help
- modal
- moveableAlert
- moveableModal
- overlay
- plain
- sheet
- sheetAlert
- simple
- toolbar
- utility
- closeBox
- collapseBox
- doesNotCycle
- hideOnFullScreen
- hideOnSuspend
- horizontalZoom
- ignoreClicks
- inWindowMenu
- liveResize
- metal
- metalNoContentSeparator
- noActivates
- noConstrain
- noShadow
- noTitleBar
- noUpdates
- opaqueForEvents
- resizable
- sideTitlebar
- texturedSquareCorners
- toolbarButton
- unifiedTitleAndToolbar
- verticalZoom
toplevel .t; ::tk::unsupported::MacWindowStyle style .t floatGrowProcIt is not usually necessary to do this in a script, so long as care is taken to make sure that no return to the event loop is possible in between. Secondly, not all combinations of attributes are supported for each window class. Unsupported combinations result in the shell being aborted. For example, do try:
toplevel .t; ::tk::unsupported::MacWindowStyle style .t floating {closeBox resizable}On the other hand, do not try:
toplevel .t; ::tk::unsupported::MacWindowStyle style .t moveableAlert {closeBox resizable}Thirdly, be aware the "movable" in the Apple API and documents is usually rendered "moveable" in the Tcl/Tk ones.Alastair Davies - 2005/01/27Category GUI - Category Mac
