I have an ImgButton that I would like to display one image while it's up and another while it's down.
I have declared the button as such:
ImgButton imgButton = new ImgButton();
imgButton.setSize(16);
imgButton.setSrc("oxygen/16/actions/media-playback-start.png");
imgButton.setShowRollOver(false);
imgButton.setActionType(SelectionType.CHECKBOX);
Two questions here:
1. How do I set the down image (css, method call, or other)?
2. Why does the button by default remove the image set in setSrc() and replace it with a tiny whit square? (I have followed the example at http://www.smartclient.com/smartgwt/showcase/#buttons_category_toggle and the only difference I can see is that the buttons in the example are in a toolstrip.
Thanks
I have declared the button as such:
ImgButton imgButton = new ImgButton();
imgButton.setSize(16);
imgButton.setSrc("oxygen/16/actions/media-playback-start.png");
imgButton.setShowRollOver(false);
imgButton.setActionType(SelectionType.CHECKBOX);
Two questions here:
1. How do I set the down image (css, method call, or other)?
2. Why does the button by default remove the image set in setSrc() and replace it with a tiny whit square? (I have followed the example at http://www.smartclient.com/smartgwt/showcase/#buttons_category_toggle and the only difference I can see is that the buttons in the example are in a toolstrip.
Thanks
Comment