on 10-11-2006 2:44 PM
I would like have a row of image buttons in my view.
But normal buttons do not have the possibility to add an image in stead of text.
So I put images on my view. Now the layout is fine, but the image element do not have an OnClick...
Is this impossible?
Hi,
You Can add images to buttons.
IWDButton modify = (IWDButton) view.getElement("Modify");
if (modify != null) {
modify.setImageSource("edit.gif");
}
//copy this image(edit.gif) in the project -> src -> mimes -> components.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
LinkToAction is working fine.
I put the images in that mime..etc directory.
They are properly shown when I deploy and run the program, but the Developer Studio can't find them.
Not a big problem, but it would be nice to see them in the designer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Normal buttons have also the possibility to add an image, but you will see the button border which may look ugly. For image-only buttons, you can use LinkToAction.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is no onAction for Image UI Element. so you can use LinkToAction UI Element and set the imageSource property with the image file name. You need not to set the text property so it will show only the image. In the onAction event you can write your code.
regards
karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.