Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Component becoming visible event

    Hi

    Is there any way of receiving an event when a component (e.g. a subclass of Canvas) becomes visible? I've tried overriding onDraw but that only seems to get called the first time the component is created. Ditto with creating a doOnRender function.

    My reason for this is essentially that I want the user to be presented with a dialog as soon as they browse to a particular tab. I was listening out for the tab change event before but recent changes have meant it's not so easy to listen out for that as there are two levels of tabs etc!

    Thanks

    #2
    What about tabSelected() function?

    Comment


      #3
      Originally posted by noschang@univali.br
      What about tabSelected() function?
      I was trying to avoid this if possible because I would have to maintain state on two separate sets of tabs. I was really looking for something general purpose to determine when a component has been made visible.

      Comment

      Working...
      X