Hi all,

need your help... following up on my questions of a few days ago, I
have prepared a reduced test lzx application that isolates the
problems very clearly (the lzx is attached).

I am simply trying to create child tabpane nodes to a tabs element,
dynamically via script. In this simplified version I am avoiding any
use of custom classes, not to confuse the issue. The issues to be
resolved (or verified as bugs) are the following:

1) It seems that one cannot create a tabs element via tag, without
adding (in-place-via-tag) any child tabpanes -- no tabpane children
would cause the following error:
ERROR: base/basetabs.lzx:122: undefined object does not have a
property 'setAttribute'

2) The attached lzx app has a method canvas.newWorktab(). The first
time this method is called (whether in the oninit on the tabs element,
or via clicking on the newWorktab control button) the following errors
are generated :
ERROR: lz/tabs.lzx:199: reference to undefined variable 'background'
ERROR: base/basecomponent.lzx:318: undefined object does not have a
property 'setColorTransform'

3) The width of the first tag-created tabpane is correct. But, from
the first script-created tabpane, the width is shrunk to what seems
the min necessary for the tab labels to fit in teh tabsbar,,,

4) How can I get the dynamically created tabpanes here to
automatically resize when the parent tabs element is resized (window
resize)?

Is any of these due to incorrectness in the code?
Is any of these a bug?
Is there an alternative to any of these?

Btw, I am using version 4.0, compiling to swf7. Other formats (swf8,
dhtml) give same problems (or more, in the case of dhtml).

I am kind of at a loss of what can be done... could anyone please look
into this and help me over these issues?

Thanks a lot...

mario

Attachment: dynamic_tabpanes.lzx
Description: Binary data

Reply via email to