Forum Discussion
tutash
9 years agoBinge Watcher
Okay, if that's the issue; creating only one instance, then what about something like this: We return the instance from a function call.
Now each call creates an instance, but that doesn't matter.
Still doesn't work because it can't be assigned as the itemComponent.
Anyway, my reasoning for asking is that I want to create MarkupGrids in code at runtime. I can use PosterGrid for my needs for now, but I'd like to have the option to point the itemComponent something other than markup.
Alas, this ain't happening.
m.gridItem = function() as Object
g = createObject("roSGNode","Rectangle")
g.width = "100"
g.height = "100"
g.color = "0xFF0000FF"
return g
end function
Now each call creates an instance, but that doesn't matter.
Still doesn't work because it can't be assigned as the itemComponent.
Anyway, my reasoning for asking is that I want to create MarkupGrids in code at runtime. I can use PosterGrid for my needs for now, but I'd like to have the option to point the itemComponent something other than markup.
Alas, this ain't happening.