Announcement

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

    [I]Button Icon alignment

    Hi Iso,

    I want to show the icon ontop the text in a [I]Button. But Icon Orient/Align only offers 'left' or 'right'. What to do?

    Related question - can I avoid the display of the text, just having the Icon?

    Ekki

    * GWT Rocks! * SmartGWT Rocks Even Harder! * SmartGWT PRO 2.0,
    GWT 2.0, Jetty 7.0.0, Eclipse 3.5.1, JRE 1.6.0_16 *
    For Evaluation only: MySQL 5.1.41, Connector/J 5.1.10
    Last edited by CI-CUBE; 16 Feb 2010, 06:04.

    #2
    We don't currently have a button that supports "top" alignment, you would have to construct this appearance from multiple widgets, such as a VLayout containing an Img widget and a Label widget with a Button as the background.

    If perfect centering with arbitrary text is not important, consider also just adding a "<br>" before the title and some "&nbsp;" chars to adjust spacing.

    To show just an icon with no title, set title to the empty string ("").

    Comment


      #3
      Icon on top

      I am new to gwt/smart gwt and can't figure out how to create a button (ToolStripButton) with the icon on top with a vlayout as you described. could you give an example, please?

      Comment


        #4
        I don't believe that such a manually created 'button' may be used in a ToolStrip...

        Comment

        Working...
        X