ere is the code without the rich but the toolbar sets always the min
size of the parent
getToolbar1 : function()
{
// create the toolbar
var toolbar = new qx.ui.toolbar.ToolBar(new
qx.ui.layout.Dock()).set({
decorator : "main",
allowStretchX : true,
allowStretchY : true
});
// create and add Part 1 to the toolbar
var part1 = new qx.ui.toolbar.Part();
var newButton = new qx.ui.toolbar.Button("Neu",
"jobs/icon/16/actions/home.png").set(
{
backgroundColor : "red",
allowStretchX : true
});
var editButton = new qx.ui.toolbar.Button("Bearbeiten",
"jobs/icon/16/actions/home.png").set(
{
backgroundColor : "red",
allowStretchX : true
});
var deleteButton = new qx.ui.toolbar.Button("Entfernen",
"jobs/icon/16/actions/home.png").set(
{
backgroundColor : "red",
allowStretchX : true
});
var pdfButton = new qx.ui.toolbar.Button("PDF",
"jobs/icon/16/actions/home.png").set(
{
backgroundColor : "red",
allowStretchX : true
});
var csvButton = new qx.ui.toolbar.Button("CSV",
"jobs/icon/16/actions/home.png").set(
{
backgroundColor : "red",
allowStretchX : true
});
part1.add(newButton);
part1.add(editButton);
part1.add(deleteButton);
part1.add(new qx.ui.toolbar.Separator());
part1.add(pdfButton);
part1.add(csvButton);
toolbar.add(part1);
return toolbar;
},
>> I got a script error, when running your code:
>> "No such property: rich"
>>
>> The ToolBar has no property "rich", please remove this from the ToolBar.
>> Perhaps this solve your issue.
>>
>> Cheers,
>> Chris
>>
>>
>>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel