3 Replies Latest reply on Mar 9, 2009 12:42 PM by Newsgroup_User

    Hand cursor on a Panel Title bar Text

    D!LFlex
      I have created a component extended to Panel control. Everything works fine except the hand cursor on clickable title bar. I used the following code

      this.titleBar.addEventListener(MouseEvent.CLICK, onTitleClick);
      this.titleBar.useHandCursor = true;
      this.titleBar.buttonMode = true;

      If I added - "this.titleBar.mouseChildren = false" it will show the hand cursor, but my click event will not fire.

      I think the hand cursor is showing, but invisible because of the actual Title which is a "UITextField".
      Is there any work around or how can I achieve this behavior ?

      Thanks in advance
      Dilish


        • 1. Re: Hand cursor on a Panel Title bar Text
          Level 7

          "D!LFlex" <webforumsuser@macromedia.com> wrote in message
          news:gorodf$cd8$1@forums.macromedia.com...
          >I have created a component extended to Panel control. Everything works fine
          > expect the hand cursor on clickable title bar. I used the following code
          >
          > this.titleBar.addEventListener(MouseEvent.CLICK, onTitleClick);
          > this.titleBar.useHandCursor = true;
          > this.titleBar.buttonMode = true;
          >
          > If I added - "this.titleBar.mouseChildren = false" it will show the hand
          > cursor, but my click event will not fire.
          >
          > I think the hand cursor is showing, but invisible because of the actual
          > Title
          > which is a "UITextField".
          > Is there any work around or how can I achieve this behavior ?

          In extending the panel, have you added to rawChildren?


          • 2. Re: Hand cursor on a Panel Title bar Text
            D!LFlex Level 1
            Thanks for the reply! As this was my first post to this forum and nobody was answering I was wondering "why?"

            titleBar is already a child control of Panel. So I don't know whether I need to add it as a rawChildren again.
            I tried this and its not showing the hand cursor.
            • 3. Re: Hand cursor on a Panel Title bar Text
              Level 7

              "D!LFlex" <webforumsuser@macromedia.com> wrote in message
              news:gp3ia6$65d$1@forums.macromedia.com...
              > Thanks for the reply! As this was my first post to this forum and nobody
              > was
              > answering I was wondering "why?"
              >
              > titleBar is already a child control of Panel. So I don't know whether I
              > need
              > to add it as a rawChildren again.
              > I tried this and its not showing the hand cursor.

              No, I was checking to make sure you didn't add anything to your component
              that would interfere with the rawChildren that were already there.