I would recommend checking for a double-click event and then showing a new=
window with the textfield and the corresponding data from the listview and=
allowing the user to make the change that way.
At 5/16/2001 11:30 PM, you wrote:
>I'm trying to do this:
>A Listview with two columns (Property, Value). When the user clicks on an=
>Item in the list, the Value column becomes editable.
>I looked at the EditLabel thing, but that edited the first column only,=20
>and that didn't work properly anyway with the edit-box losing focus right=
>So, I was thinking of placing a Textfield on top of the Listview and=20
>Showing it when the user clicks on an Item. Two problems:
>a) How do I get rid of the border around the Textfield?
>b) It seems like as soon as i SetFocus to the Textfield, the Listview=20
>takes it back. So I do a lot of kludgy stuff to bring the focus back to=20
>the textfield. As a nice side-effect, this actually redraws the Listview=20
>so the border doesn't show :) But all this seems fragile and is obviously=
>not the right way.
>PS. As I write this I realize that the first focus thing with the=20
>EditLabel seems related to the other focus thing I describe.
>Johan Lindstr=F6m, Sourcerer, Boss Casinos Ltd, Antigua
>Perl-Win32-GUI-Users mailing list
Technical & Network Services
Allegheny College, Meadville, PA 16335