Thread Subject: How to insert a transparent pushbutton after GUI starts?

Subject: How to insert a transparent pushbutton after GUI starts?

From: Adrian

Date: 10 Jun, 2009 17:11:01

Message: 1 of 3

Hello,

I am right now trying to write a GUI that will:
1) find particles on an image and place a box around each of them
2) after it finds the particles, the user needs to be able to click within the box surrounding a particle to perform more calculations on that specific area

The only way I can think of doing something like this is to insert a transparent pushbotton on top of the axes displaying the image... is this possible? Is there a better way?

Thanks,
Adrian (arandall@mit.edu)

Subject: How to insert a transparent pushbutton after GUI starts?

From: Patrick R

Date: 10 Jun, 2009 17:20:18

Message: 2 of 3

"Adrian " <arandall@mit.edu> wrote in message <h0opf5$7jm$1@fred.mathworks.com>...
> Hello,
>
> I am right now trying to write a GUI that will:
> 1) find particles on an image and place a box around each of them
> 2) after it finds the particles, the user needs to be able to click within the box surrounding a particle to perform more calculations on that specific area
>
> The only way I can think of doing something like this is to insert a transparent pushbotton on top of the axes displaying the image... is this possible? Is there a better way?
>
> Thanks,
> Adrian (arandall@mit.edu)

I'd suggest using the function GINPUT where the user can specifiy a coordinate with the mouse. the function returns the [x y] coordinates and you can directly work with them.

hth, patrick

Subject: How to insert a transparent pushbutton after GUI starts?

From: Sam

Date: 10 Jun, 2009 17:28:01

Message: 3 of 3

You can specify the position of the pushbuttons (or any other GUI object) [X Y Length Width] using the 'position' handle of whatever object you're using.

As for the other requirements I'm not sure.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com