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...?
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...?
