I have a png file I want to display and a pushbutton but I can't figure out how to make the push button the size of the image.

 Respuesta aceptada

Image Analyst
Image Analyst el 25 de Nov. de 2017

0 votos

4 comentarios

Getty Hill
Getty Hill el 25 de Nov. de 2017
yes, all it does is resize the image to the button. I want the button to resize to the image.
Image Analyst
Image Analyst el 25 de Nov. de 2017
Why not just make your button the biggest size you ever expect to have? Otherwise if you resize, your button may obscure other controls on your GUI.
Getty Hill
Getty Hill el 25 de Nov. de 2017
okay, but how do you set the button size?
Image Analyst
Image Analyst el 25 de Nov. de 2017
Set the Position property. Easily done if you're using GUIDE. You can just click and drag the handles to make it whatever size you want or to have it be in a different location. See the tutorial:

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Nov. de 2017

Comentada:

el 25 de Nov. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by