Path: news.mathworks.com!not-for-mail
From: "Sprinceana " <mihaispr@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Right click over a pushbutton
Date: Mon, 20 Apr 2009 20:12:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <gsikuh$ae$1@fred.mathworks.com>
References: <gsfvgo$feo$1@fred.mathworks.com> <gsfvs4$7ri$1@fred.mathworks.com> <gsg0er$ehm$1@fred.mathworks.com> <gshtgh$d81$1@fred.mathworks.com> <gsii8a$qc6$1@fred.mathworks.com> <gsikdl$no0$1@fred.mathworks.com>
Reply-To: "Sprinceana " <mihaispr@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240258321 334 172.30.248.38 (20 Apr 2009 20:12:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Apr 2009 20:12:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1740796
Xref: news.mathworks.com comp.soft-sys.matlab:534169


"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