PDA

View Full Version : OMG gridLayout doesnt support scrollbar feature


DEVILSAN
11-25-2012, 02:49 PM
well now bte of day i hav discovered that gridlayout doesnt support scrollbar, i thought it did..

now I have everything setup this way in gridlayout,...

maya.cmds.gridLayout(self._poseGrid, e=True,bgc=(0.2,0.2,0.2),cr=True, h=200,vis=False)


for pose in self.poseImport.list():
cmd=partial(self.applyPose,pose)

maya.cmds.iconTextButton(parent =self._poseGrid,

style='iconAndTextVertical',
width=self._iconSize[0],
height=self._iconSize[1],
image1=pose.thumb,
label ='%s' %(pose.name),
command = cmd)

maya.cmds.gridLayout(self._poseGrid,e=True,vis=True)

is ther any way i can get a scroll bar shown up when number items increases in the gridlayout or what other layout i can use to display items with a scrollbar...?

Kecal
11-26-2012, 07:41 AM
first setup scrollLayout (with childResizable = True) and then gridLayout inside of it.
If you want width or height to be constant, you have to define number of row/columns of gridLayout

DEVILSAN
11-26-2012, 11:28 AM
why wasnt it not working before... back to how i started and it works...

Kecal
11-26-2012, 12:08 PM
i am not certain what are asking...
Can you be more specific?

DEVILSAN
11-26-2012, 12:21 PM
no dude your first explanation was enough and i got it working thanks ...

CGTalk Moderation
11-26-2012, 12:21 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.