I am trying to put an image into a button and have some text below it, and I can get close, but not quite there.
If I set the background image, then the Layout is available and I can set it to Zoom. The problem is getting the text to properly appear below it.
If I set the image, then Layout is not available and I cannot Zoom it.
Ideally, it would be nice if the Image had a Layout property that would allow for Zoom.
If anyone has any suggestions, then I would be most grateful.
thanks,
Flavelle Ballem

Button Image Layout
Randine
Hi Flavelle,
Thanks for your detailed information about your scenraio and your concern.
Now I fully understand your scenario that you want to assign a Image to the button, and you want both Zoom and Alignment feature for the Image. But now the Image or BackgroudImage only provided half funtionality.
If I misunderstood, please feel free let me know.
So far I think the workaround is to use the Image property which has the Alignment property. But we need to Zoom the Image first before we assign it to the Image property.
Here is link for your reference about how to Zoom an Bitmap.
How to: Create a Zoom Effect
http://msdn2.microsoft.com/en-us/library/ms229648(VS.80).aspx
I do understand your concern in this scenario, I highly suggest you can
submit this feedback to our product feedback center:
http://lab.msdn.microsoft.com/productfeedback/default.aspx
Thanks for your understanding!
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang
Steve Teixeira
Peter:
Submitted suggestion to Microsoft, using your link.
Many thanks,
Flavelle
tekvaio
Hi Flavelle,
Sorry, but I don't understand your problem.
If you set the image, the only problem is that the text appears over the image, but that problem is very simple to solve: Using "carry return"'s before the text we will obtain the wished text position, no
You can explain the problem with more detail
Thanks!
Prakash Srinivasan
Toni:
The image is a large image.
If I set the button to use the image as a background, then I can use the BackImage.Layout property to specify Zoom, which means that the image that appears on the button will be the 'right size' to show on the button. However, the text does not format correctly in that if I resize the button, then the text will go over top of the button.
If I set the button to use the image as an image, there is no Layout property that will allow me to specify Zoom, in which case, all I see is part of the image.
The only workaround is to have a version of the image that is the 'right size' to use as a foreground image, which is a pain!
Don't know if you have any ideas, but if you do, then your suggestion would be most welcome.
thanks,
Flavelle
tspratt
Hi,
I did not understand your scenario very much.
But I think you may to check the Button's TextAlign property= MiddleCenter so that the text will keep in the middle and center of the button.
And the TextImageRelation property = TextAboveImage which will force the Text over the Image.
If I misunderstood, can you provide more information about the problem and your concern
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang
IronYuppie
Dear All:
I hope that the following provides enough information to reproduce the problem. If not, please let me know.
The problem is:
Workaround:
Ultimate Solution (request to Microsoft):
For now, I will have to use the Workaround.
Best regards,
Flavelle