Cool that you're experimenting with Laszlo to build a ui prototype.
It sounds like you may well have found some bugs; I can probably help
track them down. What version of Open Laszlo are you using? If it's
legals, are you using swf or dhtml?
-ben
On May 15, 2007, at 2:49 PM, mario ruggier wrote:
Hi,
I am investigating a concept for a ui... and I thought it would be
a great opportunity to familiarize myself with laszlo, and so try
to sketch up a live mockup. What I would like to do is to have a
control area, and a work area composed of tabpanes. A tabpane is
created after clicking on some control area button, and it can
later be deleted by clicking a delete button on the tabpane itself.
I am reading as much doc as I can, but I am kind of stalled by the
following problems:
- The width of a first tab (created automatically by the
application) is not what it should be (specified using $
{parent.width}). However, creating a tab via button will cause the
width to adjust...
- There are incomprehenisble debug errors (background,
setColorTransform) when the button above is clicked for the first time
- Tabs created via the button "lose" the background color... they
become gray.
- On the 4th (and subsequent) created tab the width of all tabpanes
reverts to being only as wide as necessary? Also the 4th and
subsequent tabpanes lose their delete button... (the 2nd and 3rd
pane's buttons also seem incorrectly placed).
- The control area (menuarea) height resizes correctly but the
workarea does not...
I have attaching an app that attempts such dynamic tabs, but has
the above problems. Could anyone please indicate me what I am
misunderstanding? Or, would there be a usefully similar example out
there somewhere?
I have also tried to play with tabclass and contentclass, but
seemingly it made things only worse.
Any other comments, on style, better alternatives, etc, would of
course also be greatty appreciated... not sure, but maybe there
could be a useful example to come out of this.
Many thanks, mario
<dyntabtest.lzx>
benjamin shine
software engineer
[EMAIL PROTECTED]