On 11/02/11 10:10, Tom medhurst wrote:
Hi Guys,
I've got a script file like so:
/*CONFIG*/
{
"id": "config-table",
"type": "MxTable",
"width": 445,
"height": 500,
"column-count": 3,
"row-count": 3,
"column-spacing": 5,
"row-spacing": 5,
"children": [
{
"id": "config-combo-cell",
"type": "Mx",
"column": 0,
"row": 0,
"column-span": 3,
"children": [
{
"id": "config-combo",
"type": "MxComboBox",
"width": 445,
"active-text": "blah blah blah..."
}
]
}
]
}
But get an error like so:
(app:22036): Clutter-WARNING **: The object definition
'config-combo-cell' (type: MxTableChild) is not an actor, but it is
referenced in the 'children' member of the container 'config-table'
(type: MxTable); skipping.
How can I declare children of a table? Really hoping this is possible!
Using clutter-1.0 and mx-1.0.
You are already "declaring" the children by putting them inside the
children property, so you don't actually need to do any more work.
I think this is more of what you're trying to do:
http://pastebin.com/E0RdAE6Y
Also, is there an easy way to make the width of the MxComboBox 100%...?
Have a look at the child properties of the MxTable:
http://docs.clutter-project.org/docs/mx/1.1/MxTableChild.html#MxTableChild.properties
Thanks,
Tom
Michael
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list