Announcement

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

    Enterprise theme - square Buttons

    Hello,

    Eclipse 3.7.0 Indigo
    AppEngine SDK 1.5.1
    GWT SDK 2.1.1
    SmartGWT 2.4

    I am trying to have square edge buttons on my SmartGWT page.

    I am using the default Enterprise theme:
    <module rename-to = 'Application'>
    <inherits name = 'com.google.gwt.user.User'/>
    <inherits name = 'com.google.gwt.user.theme.standard.Standard'/>
    <inherits name = 'com.smartgwt.SmartGwt'/>
    </module>

    In my onModuleLoad:
    HLayout Buttons = new HLayout();
    IButton ButtonOne = new IButton("Button One");
    IButton ButtonTwo = new IButton("Button Two");
    Buttons.addMember(ButtonOne);
    Buttons.addMember(ButtonTwo);
    VLayout ButtonLayout = new VLayout();
    ButtonLayout.addMember(Buttons);
    RootPanel.get("Buttons").add(ButtonLayout);
    ButtonLayout.draw();

    I get my two buttons with rounded corners.

    I have tried to set the EdgeImage to the edge.png files that are included in the .com.smartclient.theme.enterprise.public.sc.skins.Enterprise.images.edges
    edge_BL.png
    edge_BR.png
    edge_TL.png
    edge_TR.png


    ButtonOne.setEdgeImage("[SKIN]edge.png");
    ButtonTwo.setEdgeImage("edge.png");

    When I look at the four corner files with GIMP they appear to have square corners.

    But I still have rounded corners.

    On the right track?

    Thanks,

    Raney

    #2
    Remove this inherits : <inherits name = 'com.google.gwt.user.theme.standard.Standard'/>

    Comment

    Working...
    X