MATLAB Answers

Popupmenu and axes questions using GUIDE

1 view (last 30 days)
Christopher
Christopher on 14 Nov 2014
Answered: Jan on 15 Nov 2014
Hello All,
I have a few questions about doing some tings in GUIDE. I have been searching around, but haven't been able to find much information, so I figured I would ask here.
1.) I have a popupmenu that I created and I would like to display images within the menu. Is this possible? For example, one of the items on the list says square and I would like to display an image of a square next to it, so it would be square imageofsquare.jpg. I would like to do this for all of the items in the popupmenu.
2.) I would like to make an axes that displays a grid of points and allows users to snap to these points and draw lines between them. I haven't found any tutorials on doing anything like this, Does anyone know of any tutorials on doing something like this? Or the best way of going about this?

  0 Comments

Sign in to comment.

Answers (1)

Jan
Jan on 15 Nov 2014
For the first question see you question concering the same problem.
I do not know a tutorial concerning the 2nd question. There are several possible ways to implement this. You could use the ButtonDownFcn of line() objects to register if the use selects them with the mouse.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by