What UI Type Is Used To Group Settings Together?


#1

For example in the Aim Constraint Options, you can see below the menu items and above the buttons the settings are contained by a rectangular border, which UI item is this?

Thanks,
-Harry


#2

Have a dig around in performPoleVectorConstraint.mel (has same layout but less clutter than aimConstraint)
Path [\Program Files\Autodesk\Maya**\scripts\others\performPoleVectorConstraint.mel]

Looks like an option box tinkering


#3

I believe that is a frameLayout (without a title and non-collapsible).


#4

@Faux: thanks, I’ll have a look at that script now

@Keilun: I tried to use the frameLayout (infact I used one nested inside another) but it doesn’t give the same appearance, the corners are not rounded

EDIT: I can’t find any documentation for the option box but I think it’s the icon in the menu which opens the option settings, it doesn’t have anything to do with the UI. In the performPoleVectorConstraint.mel script, on line 166; if you change “tv” (tabs visible) to true, reevaluate the script and run the poleVectorConstraintOptions proc there’s a tab visible, so the method of grouping the UI controls must rely on that. Without testing, I would say that the appearance is created by having two nested tabLayouts and one frameLayout (collapsible=False, labelVisible=False, borderStyle=‘etchedIn’), I’ll do a test!


#5

After some testing:


import maya.cmds as cmds

cmds.window('windowTest', maximizeButton=False, minimizeButton=False)
cmds.columnLayout('columnTest', width=200, height=200, columnAttach=('both', 1))
cmds.tabLayout('tabTest1', width=196, height=199, tabsVisible=False)
cmds.tabLayout('tabTest2', width=190, height=193, tabsVisible=False)
cmds.frameLayout('frameTest', width=184, height=184, collapsable=False, label='', borderStyle='in', labelVisible=False)
cmds.showWindow('windowTest')

As Roy Walker would say: “It’s good but it’s not right!”