Window的常用参数解释

Window的常用参数解释


2024年5月10日发(作者:百度软件)

Window的常用参数解释

Flags

backgroundColor, defineTemplate, docTag, exists, frontWindow, height, iconName,

iconify, interactivePlacement, leftEdge, mainWindow, maximizeButton, menuArray,

menuBar, menuBarVisible, menuIndex, minimizeButton, minimizeCommand,

numberOfMenus, resizeToFitChildren, restoreCommand, retain, sizeable, title,

titleBar, titleBarMenu, toolbox, topEdge, topLeftCorner, useTemplate, visible,

width, widthHeight

Long name (short name)

-exists(-ex)

查询 window 窗口是否存在。

-defineTemplate(-dt)

argument types

Properties

string

Puts a command in a mode where any other flags and args are parsed

and added to the command template specified in the argument. They

will be used as default arguments in any subsequent invocations of

the command when templateName is set as the current template.

-useTemplate(-ut)

string

Will force the command to use a command template other than the

current one.

-title(-t)

窗口标题栏的标题文字

-iconName(-in)

string

string

The window's icon title. By default it is the same as the window's

title.

-sizeable(-s)

创建后,是否可以鼠标拖动改变大小

-titleBar(-tb)

-minimizeButton(-mnb)

-maximizeButton(-mxb)

-menuBar(-mb)

boolean

boolean

boolean

boolean

boolean

标题栏的显示和关闭,就是没有窗口的标题栏(无法移动)

标题栏的最小化窗口按钮不起作用,灰色显示(无法最小化)

标题栏的最大化窗口按钮不起作用,灰色显示(无法最大化)

在标题栏下面增加一空菜单条(一条线,起美化作用)

-toolbox(-tlb)

-titleBarMenu(-tbm)

boolean

boolean

标题栏最小样式,也就是传说中 VV 大师的窗口样式

为 1,窗口关闭后,连同 MAYA 一起关闭掉

为 0,则标题栏上不显示窗口的关闭按钮

-menuBarVisible(-mbv)

-topEdge(-te)

创建出的窗口距离屏幕顶部多少像素

-leftEdge(-le)

创建出的窗口距离屏幕左边多少像素

-topLeftCorner(-tlc)

以上两个参数的合并.

-width(-w)

创建的窗口宽度多少像素

-height(-h)

创建的窗口高度多少像素

-widthHeight(-wh)

以上两个参数的合并

-retain(-ret)

窗口关闭的时候,销毁还是隐藏!

加了它后,还可以用 showWindow 命令来显示这个窗口

-visible(-vis)

-iconify(-i)

Icon state of the window.

-mainWindow(-mw)

窗口的层级,在别的窗口最后,关闭窗口连同Maya 一起关闭

-backgroundColor(-bgc)

窗口的窗体颜色,RGB(0-1)

-resizeToFitChildren(-rtf)

boolean

int

int

int int

int

int

int int

控制视图菜单栏的显示与否,一般对创建的视图面板表情窗口有用

boolean

boolean

窗口创建出来后, 显示还是隐藏, 为 1, 则自动显示, 为 0, 需用 showWindow

float float float

boolean

控制这个窗口是否忽略自身宽高自动缩放来完全显示窗体内包含的控件

-interactivePlacement(-ip)

Forces interactive placement of the window. The default is to place

the windows automatically. Has no effect when the desktop is

customized to auto place all windows. This flag has no effect on

Windows systems.

-minimizeCommand(-mnc)

-restoreCommand(-rc)

-numberOfMenus(-nm)

Return the number of menus attached to the window's menu bar.

script

string

执行某个脚本后,最小化窗口(iconified)。

执行某个脚本后,从最小化状态恢复原来大小(iconified)

-menuArray(-ma)

以字符串形式返回窗口菜单栏的名字

-menuIndex(-mi)

设置指定的菜单的指数。

-docTag(-dtg)

给窗口做一个名称标记

-frontWindow(-fw)

不管这个窗口显示与否,返回这个窗口的名称

string int

string


发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1715280442a2593735.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信