I'm sorry about the lack of comments in my code.  It is still a WIP.

As for all the resizing, that is not required.  All resixing of child layers is done using the resize event listener attached to the object.

I wanted to create an object that I could use everywhere without the need for a series of individual object with specialist functions.

The lyrcaption layer is required so that the borders are not lost when you change the label text.  If you want to so a series of test that enable the use of sethtml when there are no borders, feel free.  I just wanted to make a simple widget that enabled we to use a single object on whch to base my tables, my buttons, my nodes and everything else that required formatted text.

If you want, you can trim the code back to remove the borders.  I personally like them to be there when I need then without having to write a second widget to do that.  That would result in:
  DynLayer
    --> Cell
          --> BorderCell
                --> Button

I want to keep the inheritance to a minimum if at all possible.
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010 _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/mailman/listinfo/dynapi-dev

Reply via email to