Quantcast
Channel: MATLAB Central Newsreader - tag:"checkbox"
Viewing all articles
Browse latest Browse all 18

Re: Setting GUI Checkbox Defaute value by global variable

$
0
0


"Jinseok Ur" <jinseok007@naver.com> wrote in message
news:mh4joi$9t3$1@newscl01ah.mathworks.com...
> "Steven Lord" <Steven_Lord@mathworks.com> wrote in message
> <mh37gt$h1a$1@newscl01ah.mathworks.com>...

*snip*

> Thanks for your interest.
> When i set the value, i use property inspector or use set function in gui
> m-file.
>
>
> for example
> i set the checkbox value 1 in property inspector.
> then i start gui , the chekbox is chekced.
> in this situation , i want to use set function, like
> set(handels.checkbox,'Value',0) in gui m-file to change value when i start
> gui.

Okay. Take a look at the object's CreateFcn property or the GUI's
OpeningFcn.

> before i used set function below checkbox_Callback , that dosen't work.
> (when i start gui, checkbox was still checked.)

No, that wouldn't work. The Callback function only gets invoked when you
interact with the object (for a checkbox, it only triggers when you check or
uncheck the box.)

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Viewing all articles
Browse latest Browse all 18

Trending Articles