Path: news.mathworks.com!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail
From: Kai <invalid@invalid.invalid>
Newsgroups: comp.soft-sys.matlab
Subject: Re: guide: initialize values of sliders
Date: Thu, 08 Jan 2009 14:07:48 +0100
Lines: 31
Message-ID: <6smc54F74loiU1@mid.dfncis.de>
References: <6sm5pfF73d9fU1@mid.dfncis.de> <gk4t1a$9l5$1@fred.mathworks.com>
Reply-To: invalid@invalid.invalid
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Trace: news.dfncis.de xfDIbXMZGEpAjovknbeVVQoZ7C+9/g5OaVlnWAp4ETRCGeP2yqjmcHo/4b
Cancel-Lock: sha1:Z29an0EZ6jjlbsadCOPLmfK5OaY=
User-Agent: KNode/0.10.5
Xref: news.mathworks.com comp.soft-sys.matlab:510396


Jiro Doke wrote:

> Kai <invalid@invalid.invalid> wrote in message
> <6sm5pfF73d9fU1@mid.dfncis.de>...
>> Hello,
>> 
>> I'm using guide to create a MATLAB gui. at witch position in the
>> corresponding .m-file can I define the initial values of my objects?
>> 
>> code-flow in my file is like:
>> 
>> function varargout = gui(varargin)
>> 
>> function gui_OpeningFcn(hObject, eventdata, handles, varargin)
>> 
>> function varargout = gui_OutputFcn(hObject, eventdata, handles)
>> 
>> function slider1_Callback(...)
>> 
>> Thanks for help,
>> Kai
> 
> Kai,
> 
> Either set it in the .fig file (via the Property Inspector of the
> component) or use the CreateFcn of the component.
> 
> jiro

CreateFcn is the one I was looking for. thanks!