6 Replies Latest reply on Jul 23, 2009 4:17 AM by HeatherZh

    Correct way of setting styles for custom components

    firdosh Level 1

      Hey everyone,

                              I have a custom component which extends UIComponent and holds a image and a button. If I want to set the default style for my button where do I set it in the createChildren, stylesInitialized ,  updateDisplayList  or styleChanged ? I know styleChanged gets called first but the param is always null

       

      styleChanged = null
      stylesInitialized
      initialize
      createChildren
      initializationComplete
      commitProperties
      measure
      updateDisplayList

       

       

       

      Cheers,

      Firdosh