Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!binfeed1.tudelft.nl!tudelft.nl!binfeed2.tudelft.nl!news1.tudelft.nl!not-for-mail
From: "Jeroen Boschma" <no_mail@please.com>
Newsgroups: comp.soft-sys.matlab
References: <470a0dd5$1@aurora.telecom.tno.nl> <fed4q6$d89$1@fred.mathworks.com>
Subject: Re: About behavior of KeyPressFcn
Date: Mon, 8 Oct 2007 14:12:49 +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: <470a1ecc$1@aurora.telecom.tno.nl>
X-Original-Trace: 8 Oct 2007 14:13:00 +0200, d6363.ict.tno.nl
Organization: TNO ICT Netherlands
X-Complaints-To: sysadmin@tudelft.nl
Lines: 40
NNTP-Posting-Host: aurora.telecom.tno.nl (139.63.192.5)
NNTP-Posting-Date: Mon, 08 Oct 2007 14:13:04 +0200
X-Trace: 2aec2470a1ed02e9a65a020109
Xref: news.mathworks.com comp.soft-sys.matlab:431771




"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message 
news:fed4q6$d89$1@fred.mathworks.com...
> "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
>
>
OK, thanks for the pointer Yair. I downloaded your 'findjobj' and try to 
find out the essence of it so I can write a smaller version of the whole 
underlying idea, for performance issues. Only need the single 'edit'-thingie 
:-)

   Jeroen