Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ImageResource and IButton problem

$
0
0
Hi all,

we are facing a problem using ImageResource interface with IButton object with the follow scenario

1. SmartGWT 3.1
2. browser: IE8, IE9, FF

<code>

IButton button = new IButton("Test");
button.setShowRollOver(true);
button.setShowDisabled(true);
button.setShowDown(true);
button.setTitleStyle("stretchTitle");
button.setIcon(ClientBundleResource.INSTANCE.myIma ge().getSafeUri().asString());
button.disable();

</code>

The expectation behavior is a disabled button with the correct myImage resource in format "AAAA_Didsabled.png" in base64 format, but no image is loaded.

So the question is, How can we use ImageResource with IButton and/or ImageButton using enable and disable images? (Please consider that using ImageBundle (the old way) it works properly).

Thanks,

Viewing all articles
Browse latest Browse all 4756

Trending Articles