Announcement

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

    Icon for ToolStripMenuButton

    Hi

    I want to keep some icon for the menuButton, but the icon image is not getting visible.
    please suggest any workaround

    -raghu

    #2
    Haven't seen a problem. Suggest you post your code and what you are seeing.

    Comment


      #3
      Hi

      This is my code.

      Code:
      ToolStripMenuButton preLoginUser=new ToolStripMenuButton("Sign In",preLoginUserMenu);
      preLoginUser.setIcon("/images/toolbar/login.png");
      Thank
      -raghu

      Comment


        #4
        You probably have a wrong URL path. User Firebug and examine the http request for the URL.

        Comment


          #5
          I used the following technique, now it's working fine :)

          Code:
          String imgHTML = Canvas.imgHTML("/images/toolbar/login.png");
          		preLoginUser.setTitle("<span>" + imgHTML + "&nbsp;" + "User Access" + "</span>");
          thanks for your support

          Comment


            #6
            Have the same issue as visumagic, the workaround is working but the setIcon() is not working. I had upgraded a toolbarbutton with icon to a toolbarmenubutton and the icon disappeared.
            Thanks visumagic

            Comment


              #7
              Originally posted by visumagic
              I used the following technique, now it's working fine :)

              Code:
              String imgHTML = Canvas.imgHTML("/images/toolbar/login.png");
              		preLoginUser.setTitle("<span>" + imgHTML + "&nbsp;" + "User Access" + "</span>");
              thanks for your support
              Hi Visumagic,
              what browser do you use? I am following your post I see no good renderer ToolStripMenuButton

              Comment


                #8
                I had same problem and visumagic's trick solved it, thanks for sharing it.

                Comment


                  #9
                  The workaround also worked for me, though it made the button too high (haven't figured out a solution yet).

                  Bit strange that this bug still exists in Smart GWT 3.0; anyone know if they have an issue tracker I could look through and make sure this has been reported in? Guessing they haven't fixed it simply because they didn't know about it.

                  Comment

                  Working...
                  X