Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!feed20.multikabel.net!multikabel.net!feed10.multikabel.net!feed.xsnews.nl!border-1.ams.xsnews.nl!tudelft.nl!binfeed2.tudelft.nl!news1.tudelft.nl!not-for-mail
From: "Jeroen Boschma" <no_mail@please.com>
Newsgroups: comp.soft-sys.matlab
Subject: About behavior of KeyPressFcn
Date: Mon, 8 Oct 2007 13:00:37 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Original-NNTP-Posting-Host: d6363.ict.tno.nl
Message-ID: <470a0dd5$1@aurora.telecom.tno.nl>
X-Original-Trace: 8 Oct 2007 13:00:37 +0200, d6363.ict.tno.nl
Organization: TNO ICT Netherlands
X-Complaints-To: sysadmin@tudelft.nl
Lines: 15
NNTP-Posting-Host: aurora.telecom.tno.nl (139.63.192.5)
NNTP-Posting-Date: Mon, 08 Oct 2007 13:00:40 +0200
X-Trace: acc25470a0dd82e9a65a012256
Xref: news.mathworks.com comp.soft-sys.matlab:431762



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