Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Listbox mousedown problems
Date: Mon, 12 May 2008 17:11:38 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 20
Message-ID: <g09toa$j63$1@canopus.cc.umanitoba.ca>
References: <g09d97$ir0$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1210612298 19651 192.70.172.160 (12 May 2008 17:11:38 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Mon, 12 May 2008 17:11:38 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:467951


In article <g09d97$ir0$1@fred.mathworks.com>,
helper  <spamless@nospam.com> wrote:

>To see my problem, perform the following steps:
>
>1. Select element 1 in the listbox
>2. Click in the editbox and edit the value
>3. Click element 3 in the listbox
>
>You will see that the listbox jumps back to element 1, and 
>the user must click on the listbox again to change the 
>value.

Did you try recording the Value parameter of the listbox before
the change and then setting the Value of the listbox after
the String has changed? The Value parameter controls which line
of the listbox is the current line.
-- 
  "There is nothing so bad but it can masquerade as moral."
                                              -- Walter Lippmann