Re: Could anyone please confirm this?
- From: "Christopher J. Demers" <cdemersnews@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 7 Oct 2005 01:29:04 -0400
"Günther Schmidt" <gue.schmidt@xxxxxx> wrote in message
news:4345b2cc@xxxxxxxxxxxxxxxxxxxxxxxxxx
> ... you show a list of items in a multicolumn list view,
> when you edit one of the items the list won't update,
> the trick is to remove the item temporarily,
> edit it,
> and the reinsert it,
> so the list will update...
I think removing and re-adding it is a bit too heavy handed. You can just
tell the ListModel to refresh the disiplay for that item that was edited.
For example evaluate the following line by line to see what happens:
==============
col := ListModel on: #('aaa' 'bbb' 'ccc').
(lp := ListPresenter showOn: col) view topShell extent: 100@100.
"Make a change that requires a display update."
col first at: 2 put: $B.
"Now tell the ListModel to refresh the display for the item that was
changed."
col updateItem: col first.
==============
FYI: In Dolphin 6 updateItem: is deprecated in favor of refresh: .
Chris
.
- Follow-Ups:
- Re: Could anyone please confirm this?
- From: Chris Uppal
- Re: Could anyone please confirm this?
- References:
- Could anyone please confirm this?
- From: Günther Schmidt
- Could anyone please confirm this?
- Prev by Date: Re: Another MessageBox forkMainIfMain problem
- Next by Date: Re: Using Subversion - Pax and the SourceBrowser?
- Previous by thread: Could anyone please confirm this?
- Next by thread: Re: Could anyone please confirm this?
- Index(es):
Relevant Pages
|
Loading