![]() ![]() Whether or not the dockControl width may be interactively resized. Whether or not the dockControl height may be interactively resized. ![]() Whether or not the menu option for the dock control in the UI Elements popup menu is enabled. Will appear dimmed or greyed-out indicating it is disabled.Įnables the background color of the control. "print '%(dragControl)s %(dropControl)s %(messages)r %(x)d %(y)d %(type)d'") The "dragControl" value is a string and the other values are integers $type can have values of 1 = Move, 2 = Copy, 3 = Link.ĭef pythonDropTest( dragControl, dropControl, messages, x, y, dragType ):ĭictionary with the keys "dragControl", "dropControl", "messages", "x", "y", The first string in the msgs array describes the user defined message type.Ĭontrols that are application defined drop sites may ignore theĬallback. The proc receives a string array that is transferred from the drag source. Global proc callbackName(string $dragControl, string $dropControl, string $msgs, int $x, int $y, int $type) Operation is released above the drop site. "dragControl" value is a string and the other values are integers (eg theĬallback string could be "print '%(dragControl)s %(x)d %(y)d %(modifiers)d'")Īdds a callback that is called when a drag and drop The format values are passed in aĭictionary with the keys "dragControl", "x", "y", "modifiers". In that case, the string will have the values substituted into it The other way to specify the callback in Python is to specify a string to beĮxecuted. The values of these arguments are the same as those for the MEL version above. In thatĬase, the Python callback should have the form:ĭef callbackName( dragControl, x, y, modifiers ): Recommended way is to pass a Python function object as the argument. In Python, it is similar, but there are two ways to specify the callback. Possible values are 0 = No modifiers, 1 = SHIFT, 2 = CTL, $mods allows testing for the key modifiers CTL and Controls that are application defined drag sources may The proc returns a string array that is transferred to the drop site.īy convention the first string in the array describes the user settable Global proc string callbackName(string $dragControl, int $x, int $y, int $mods) The MEL version of the callback is of the form: If this is not set it is assumed to be the main window.Īdds a callback that is called when the middle mouse button The name of the control the window can be docked into. dt render/multiLister/createNode/material Has a directory structure like hierarchy.Įg. Invocations of the command when templateName is set as theĪdd a documentation flag to the control. They will be used as default arguments in any subsequent Parsed and added to the command template specified in the argument. Puts the command in a mode where any other flags and args are The name of the control that is the content of this dock control. Script executed after the dock control is closed. When setting backgroundColor, the background is automaticallyĮnabled, unless enableBackground is also specified with a false To the red, green, and blue color components. The initial dock area for this dock control. The default is "all".Īnnotate the control with an extra string value. Valid values are "top", "left", "bottom", "right" and "all". Flags allowedArea, annotation, area, backgroundColor, closeCommand, content, defineTemplate, docTag, dockStation, dragCallback, dropCallback, enable, enableBackground, enablePopupOption, exists, fixedHeight, fixedWidth, floatChangeCommand, floating, fullPathName, height, highlightColor, isObscured, label, manage, moveable, noBackground, numberOfPopupMenus, parent, popupMenuArray, preventOverride, raise, retain, sizeable, splitLayout, state, useTemplate, visible, visibleChangeCommand, width Long name (short name)Īreas where the dock control may be placed. In query mode, return type is based on queried flag. The titlebar displays the dock control window title, a float button and a close button.ĭepending on the state of the dock control, the float and close buttons may be either disabled or not shown at all. undocked).ĭock control consists of a title bar and the content area. SynopsisĭockControl ĭockControl is undoable, queryable, and editable.Ĭreate a dockable control, also known as tool palette or utility window.ĭock controls are secondary windows placed in the dock area around the central control in a main window.ĭock windows can be moved inside their current area, moved into new areas and floated (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |