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:
Set checkbox checked when the step is done.

Subject: Set checkbox checked when the step is done.

From: karen liew

Date: 30 Sep, 2008 09:21:02

Message: 1 of 3

I am doing a GUI project requires user input step by step. I would like to remind the user which data is done. I am thinking to check the checkbox automatically according to the step. May I know is that possible doing so using MATLAB? If yes, how to do it? Thanks!

Subject: Set checkbox checked when the step is done.

From: Dave Brackett

Date: 30 Sep, 2008 09:33:01

Message: 2 of 3

"karen liew" <liewsheaushiang@yahoo.com> wrote in message <gbsr1u$3ek$1@fred.mathworks.com>...
> I am doing a GUI project requires user input step by step. I would like to remind the user which data is done. I am thinking to check the checkbox automatically according to the step. May I know is that possible doing so using MATLAB? If yes, how to do it? Thanks!

At the relevant step use

set(handles.checkbox1,'Value',1)

find the tag of each checkbox from the property inspector.

Subject: Set checkbox checked when the step is done.

From: Thomas Clark

Date: 30 Sep, 2008 09:37:01

Message: 3 of 3

Hi Karen.

set(handles.checkbox1,'Value',1);

...places a tick in the box. To find out more things like this, right click on the object in GUIDE than look at the property inspector. The best way of learning is to look down the list of properties, find likely looking ones, and mess about with them! There are always the help pages to describe what particular properties do...

Kind Regards

Tom Clark


"karen liew" <liewsheaushiang@yahoo.com> wrote in message <gbsr1u$3ek$1@fred.mathworks.com>...
> I am doing a GUI project requires user input step by step. I would like to remind the user which data is done. I am thinking to check the checkbox automatically according to the step. May I know is that possible doing so using MATLAB? If yes, how to do it? Thanks!

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