Thread Subject: GUI

Subject: GUI

From: A

Date: 27 Aug, 2008 19:25:04

Message: 1 of 2

I'm editing a GUI program already created by someone else.
I'm kind of confused because this is my first time ever
working on a GUI matlab program. I'm familiar with matlab.

I've been trying to understand the structure of the program.
Anyways, I need to be able to get the string or characters
from a popummenu tab and place that string on the plot of
the data.

I would copy and past the program. But it is so long. Maybe
someone can explain it to me a little by using your own
examples.

Thank you for your time in advance.

Subject: GUI

From: Walter Roberson

Date: 27 Aug, 2008 19:50:39

Message: 2 of 2

A wrote:
> I'm editing a GUI program already created by someone else.

> Anyways, I need to be able to get the string or characters
> from a popummenu tab and place that string on the plot of
> the data.

AllpupStrings = cellstr( get(Puphandle, 'String') );
SelectedpupEntry = get(Puphandle, 'Value');
if SelectedEntry <= 0 || SelectedEntry > length(AllpupStrings)
  error('Somehow, a non-existant entry was selected!');
end
ThisString = AllpupStrings{SelectedpupEntry};
text(TheXpos, TheYpos, ThisString);

--
Q = quotation(rand);
if isempty(Q); error('Quotation server filesystem problems')
else sprintf('%s',Q), end

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

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com