Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: About behavior of KeyPressFcn
Date: Mon, 8 Oct 2007 11:37:42 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 29
Message-ID: <fed4q6$d89$1@fred.mathworks.com>
References: <470a0dd5$1@aurora.telecom.tno.nl>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1191843462 13577 172.30.248.38 (8 Oct 2007 11:37:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 8 Oct 2007 11:37:42 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:431766



"Jeroen Boschma" <no_mail@please.com> wrote in message
<470a0dd5$1@aurora.telecom.tno.nl>...
> Hi all,
> 
> I'm using KeyPressFcn for an edit control. The problem is
that within 
> KeyPressFcn I need the actual String of the edit control
_including_ the 
> last typed character. However, within KeyPressFcn I only
can get the 'old' 
> value of the edit control before the key was pressed. This
is of no use to 
> me... Does anybody know a workaround for this without
writing a complete 
> interpreter for all keystrokes such that I have to
calculate myself what the 
> new contents of the edit control will be?
> 
> Thanx,
> 
>    Jeroen 


http://www.mathworks.com/matlabcentral/newsreader/view_thread/151905

Yair Altman
http://ymasoftware.com