Announcement

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

    How to make MenuButton look like ToolStripMenuButton

    I've tried setBaseStyle("stretchImgButton") which gets the initial style set correctly, but it does not change when the mouse rolls over it. I also added setShowRollOver(true) which has no effect.

    #2
    setShowRollOver(true) should be causing the rollover style to show, you can check with Firebug (look for the "Over" suffix). The actual problem may be that the rollover style is the same as the normal style.

    Comment


      #3
      How do I make the rollover style the same as the ToolStripMenuButton. I've tried variations on the following and nothing seems to work.

      MenuButton mb = new MenuButton("MenuButton");
      mb.setBaseStyle("stretchImgButton");
      mb.setStylePrimaryName("stretchImgButton");
      mb.setShowRollOver(true);
      mb.setStyleDependentName("Over", true);

      Comment

      Working...
      X