i tried the CSS, but didn't work:

css:
.dispButton {
    height: 32px;
    width: 32px;
    font-size: 150%;
}

and code:
        Button myrButton = new Button("hello");
        myButton.setCls("dispButton");


I also tried their default css code:
/* remove the default left,center and right images from the button border*/
.mybutton-text-icon .x-btn-left, .mybutton-text-icon .x-btn-right,
.mybutton-text-icon .x-btn-center {
    background: 0;
}

/* customize the new button    that has a caption below the icon */
.mybutton-text-icon .x-btn-center .x-btn-text {
    background-position: 0 2px;
    background-repeat: no-repeat;
    padding-left: 0px;
    padding-top: 32px;
    padding-bottom: 0px;
    padding-right: 0px;
    height: 32px;
    width: 32px;
}

code:
        Button myrButton = new Button("hello");
        myButton.setCls("mybutton-text-icon");

then there is an empty icon above the button, "hello" become a caption below
the button instead of the button's text ....


On Wed, Dec 3, 2008 at 7:56 PM, bulyboy <[EMAIL PROTECTED]> wrote:

>
> Try changing the size with style sheet
>
> On Dec 4, 1:48 am, "yi dan" <[EMAIL PROTECTED]> wrote:
> > i tried
> >
> > Button myButton = new Button("hello");
> > myButton.setHeight("10px");
> > myButton.setWidth("20px");
> >
> > it didn't work....
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to