Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Right click over a pushbutton
Date: Mon, 20 Apr 2009 20:03:01 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 19
Message-ID: <gsikdl$no0$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>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240257781 24320 172.30.248.37 (20 Apr 2009 20:03:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Apr 2009 20:03:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869871
Xref: news.mathworks.com comp.soft-sys.matlab:534166


"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.