Editable list control

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Editable list control

Dmitry Zamotkin-2
I need editable ListPresenter. Does anybody khow the easiest way to create
one?


Reply | Threaded
Open this post in threaded view
|

Re: Editable list control

Bill Schwab-2
Dmitry,

> I need editable ListPresenter. Does anybody khow the easiest way to create
> one?

I assume you mean a list presenter that allows the items to be edited.  You
can get the #selection (as a starting point for prompting the user) and
#selectionByIndex from the list, and then send #at:put: to the model, and
you might have to follow that with #updateAtIndex: to update the GUI.  Does
that help?

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Editable list control

Dmitry Zamotkin-2
> Dmitry,
>
> > I need editable ListPresenter. Does anybody khow the easiest way to
create
> > one?
>
> I assume you mean a list presenter that allows the items to be edited.
You
> can get the #selection (as a starting point for prompting the user) and
> #selectionByIndex from the list, and then send #at:put: to the model, and
> you might have to follow that with #updateAtIndex: to update the GUI.

Yes, I mean a list presenter that allows the items to be edited. In-place
and multi-columns. I don't want additional dialogs to edit list items.

I can change ListPresenter the way like this:
ListPresenter>>onLabelOf: anObject editedTo: text
( anObject isKindOf: String ) ifTrue: [ anObject oneWayBecome: text ].
 ^self view onLabelOf: anObject editedTo: text

But it not right way, I'm sure. I need something like Grid(?)Presenter.

Dmitry


Reply | Threaded
Open this post in threaded view
|

Re: Editable list control

Bill Schwab
Dmitry,

> Yes, I mean a list presenter that allows the items to be edited. In-place
> and multi-columns. I don't want additional dialogs to edit list items.
>
> I can change ListPresenter the way like this:
> ListPresenter>>onLabelOf: anObject editedTo: text
> ( anObject isKindOf: String ) ifTrue: [ anObject oneWayBecome: text ].
>  ^self view onLabelOf: anObject editedTo: text
>
> But it not right way, I'm sure. I need something like Grid(?)Presenter.

You probably will need to go to an ActiveX control of some type; the
AXControlBrowser will allow you to easily experiment within Dolphin.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]