On 27/04/2017 at 02:42, xxxxxxxx wrote:
Hey all,
Id like to create a scroll group with multiple items.
class Dlg(gui.GeDialog) :
def CreateLayout(self) :
self.ScrollGroupBegin(200, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, c4d.SCROLLGROUP_HORIZ | c4d.SCROLLGROUP_VERT)
self.AddCheckbox(201, c4d.BFH_SCALEFIT | c4d.BFV_TOP, initw=200, inith=0, name="AAAAAA")
self.AddCheckbox(202, c4d.BFH_SCALEFIT, initw=200, inith=0, name="BBBBBB")
self.AddCheckbox(203, c4d.BFH_SCALEFIT, initw=200, inith=0, name="CCCCCC")
self.GroupEnd()
return True
class Name(plugins.CommandData) :
dialog = None
def Execute(self, doc) :
if self.dialog is None: self.dialog = Dlg()
return self.dialog.Open(dlgtype=c4d.DLG_TYPE_ASYNC, pluginid=PLUGIN_ID, defaultw=100, defaulth=100)
def RestoreLayout(self, sec_ref) :
if self.dialog is None: self.dialog = Dlg()
return self.dialog.Restore(pluginid=PLUGIN_ID, secret=sec_ref)
if __name__ == "__main__":
bmp = bitmaps.BaseBitmap()
dir, f = os.path.split(__file__)
fn = os.path.join(dir, "res", "icon.tif")
bmp.InitWith(fn)
plugins.RegisterCommandPlugin(id=PLUGIN_ID,
str="Name",
info=0,
help="Name",
dat=Name(),
icon=bmp)
But there is just the first item shown in window.
What Im doing wrong?
Greetings
rownn