Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Right click over a pushbutton

Subject: Right click over a pushbutton

From: Sprinceana

Date: 19 Apr, 2009 19:54:01

Message: 1 of 9

What I must select to the property Selection Type of figure1(I have normal,open,alt,extend) to perform a right click over my pushbutton?

I wait a response please!

I'm using guide!

Subject: Right click over a pushbutton

From: Sprinceana

Date: 19 Apr, 2009 19:57:01

Message: 2 of 9

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfvgo$feo$1@fred.mathworks.com>...
> What I must select to the property Selection Type of figure1(I have normal,open,alt,extend) to perform a right click over my pushbutton?
>
> I wait a response please!
>
> I'm using guide!

Also I know that the callback associated to the right click over a button is :

function pushbutton1_ButtonDownFcn(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

Subject: Right click over a pushbutton

From: Jiro Doke

Date: 19 Apr, 2009 20:00:04

Message: 3 of 9

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfvgo$feo$1@fred.mathworks.com>...
> What I must select to the property Selection Type of figure1(I have normal,open,alt,extend) to perform a right click over my pushbutton?
>
> I wait a response please!
>
> I'm using guide!

I'm going to encourage you to take a look at the documentation. You seem to know the property Selection Type. If you search for that in the documentation, it will tell you which one you want.

jiro

Subject: Right click over a pushbutton

From: Sprinceana

Date: 19 Apr, 2009 20:10:03

Message: 4 of 9

"Jiro Doke" <jiro.doke@mathworks.com> wrote in message <gsfvs4$7ri$1@fred.mathworks.com>...
> "Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfvgo$feo$1@fred.mathworks.com>...
> > What I must select to the property Selection Type of figure1(I have normal,open,alt,extend) to perform a right click over my pushbutton?
> >
> > I wait a response please!
> >
> > I'm using guide!
>
> I'm going to encourage you to take a look at the documentation. You seem to know the property Selection Type. If you search for that in the documentation, it will tell you which one you want.
>
> jiro


I've searched the documentation so it can be alt(alternate) or extent for selection type.

I wait your response which of this 2 is the best way to perform the right click over a pushbutton.

Also it is possible when I right click the button to appear me a popupmenu linke in C++ Builder(over right click on a button)?

Thanks in advance!

Michael

Subject: Right click over a pushbutton

From: Sprinceana

Date: 20 Apr, 2009 09:04:02

Message: 5 of 9

Any ideas?

I'm doing right?

Subject: Right click over a pushbutton

From: Jiro Doke

Date: 20 Apr, 2009 13:32:01

Message: 6 of 9

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gsg0er$ehm$1@fred.mathworks.com>...
> "Jiro Doke" <jiro.doke@mathworks.com> wrote in message <gsfvs4$7ri$1@fred.mathworks.com>...
> > "Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfvgo$feo$1@fred.mathworks.com>...
> > > What I must select to the property Selection Type of figure1(I have normal,open,alt,extend) to perform a right click over my pushbutton?
> > >
> > > I wait a response please!
> > >
> > > I'm using guide!
> >
> > I'm going to encourage you to take a look at the documentation. You seem to know the property Selection Type. If you search for that in the documentation, it will tell you which one you want.
> >
> > jiro
>
>
> I've searched the documentation so it can be alt(alternate) or extent for selection type.
>
> I wait your response which of this 2 is the best way to perform the right click over a pushbutton.
>
> Also it is possible when I right click the button to appear me a popupmenu linke in C++ Builder(over right click on a button)?
>
> Thanks in advance!
>
> Michael

Well, if you're trying to detect a "right-click", the documentation says "alternate".

I'm not sure what you are saying when you say "popupmenu like in C++ Builder".

Subject: Right click over a pushbutton

From: Sprinceana

Date: 20 Apr, 2009 19:26:02

Message: 7 of 9

"Jiro Doke" <jiro.doke@mathworks.com> wrote in message <gshtgh$d81$1@fred.mathworks.com>...
> "Sprinceana " <mihaispr@yahoo.com> wrote in message <gsg0er$ehm$1@fred.mathworks.com>...
> > "Jiro Doke" <jiro.doke@mathworks.com> wrote in message <gsfvs4$7ri$1@fred.mathworks.com>...
> > > "Sprinceana " <mihaispr@yahoo.com> wrote in message <gsfvgo$feo$1@fred.mathworks.com>...
> > > > What I must select to the property Selection Type of figure1(I have normal,open,alt,extend) to perform a right click over my pushbutton?
> > > >
> > > > I wait a response please!
> > > >
> > > > I'm using guide!
> > >
> > > I'm going to encourage you to take a look at the documentation. You seem to know the property Selection Type. If you search for that in the documentation, it will tell you which one you want.
> > >
> > > jiro
> >
> >
> > I've searched the documentation so it can be alt(alternate) or extent for selection type.
> >
> > I wait your response which of this 2 is the best way to perform the right click over a pushbutton.
> >
> > Also it is possible when I right click the button to appear me a popupmenu linke in C++ Builder(over right click on a button)?
> >
> > Thanks in advance!
> >
> > Michael
>
> Well, if you're trying to detect a "right-click", the documentation says "alternate".
>
> I'm not sure what you are saying when you say "popupmenu like in C++ Builder".

Popupmenu with options(for example red,blue at items property in c++builder). So when I clicked right mouse on button in builder I see the items red,blue.

That's why I want to say.

So I made the pushbutton of type popupmenu and on string property I write red,blue and then the property alternate.

When I click right it doesn't make a right click on my button even I set figure property SelectionType alternate.

What is my error?

I wait your response!

Thanks a lot,

Subject: Right click over a pushbutton

From: Jiro Doke

Date: 20 Apr, 2009 20:03:01

Message: 8 of 9

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gsii8a$qc6$1@fred.mathworks.com>...
>
> Popupmenu with options(for example red,blue at items property in c++builder). So when I clicked right mouse on button in builder I see the items red,blue.
>
> That's why I want to say.
>
> So I made the pushbutton of type popupmenu and on string property I write red,blue and then the property alternate.
>
> When I click right it doesn't make a right click on my button even I set figure property SelectionType alternate.
>
> What is my error?
>
> I wait your response!
>
> Thanks a lot,

What is a "c++ builder"?

Anyway, why do you need it to be a right-click? Can you just use a popupmenu and click on it to get a list? Are you looking for a different action based on right-click or left-click? Also, you should *not* set the SelectionType property. It's not for you to set. It automatically changes to the appropriate setting based on which button you click.

Subject: Right click over a pushbutton

From: Sprinceana

Date: 20 Apr, 2009 20:12:01

Message: 9 of 9

"Jiro Doke" <jiro.doke@mathworks.com> wrote in message <gsikdl$no0$1@fred.mathworks.com>...
> "Sprinceana " <mihaispr@yahoo.com> wrote in message <gsii8a$qc6$1@fred.mathworks.com>...
> >
> > Popupmenu with options(for example red,blue at items property in c++builder). So when I clicked right mouse on button in builder I see the items red,blue.
> >
> > That's why I want to say.
> >
> > So I made the pushbutton of type popupmenu and on string property I write red,blue and then the property alternate.
> >
> > When I click right it doesn't make a right click on my button even I set figure property SelectionType alternate.
> >
> > What is my error?
> >
> > I wait your response!
> >
> > Thanks a lot,
>
> What is a "c++ builder"?
>
> Anyway, why do you need it to be a right-click? Can you just use a popupmenu and click on it to get a list? Are you looking for a different action based on right-click or left-click? Also, you should *not* set the SelectionType property. It's not for you to set. It automatically changes to the appropriate setting based on which button you click.

Ok.

I done that I removed selectiontype property from figure to normal.

Pushbutton is property Style popupmenu with String : Blue,Red.

But the menu with 2 options apppear only in left click of the mouse. Is it possible when I right click the button of type popupmenu to appear the menu for me?

That's my simple question.

Thanks for your response,

Michael

Tags for this Thread

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.

Contact us