Gotit!
The Listbox inherited a CellBackgroundPaint event, which seems to
interfere with the EditCell method. It was not painted over, it indeed
did not receive the focus when using it from the CellKeyDown event.
However, it worked with an external button ...
What I do now is setting a flag after a new line was added. Then I check
this in a new CellBackgroundPaint event which clears that flag calls
.EditCell().
Thanks !
Harald
Harald Schneider schrieb:
It IS funny: Using the same code with a Pushbutton works, but not from
within the CellKeyDown() Event ..
-- Harald
Terry Ford schrieb:
Funny, The following code in a pushbutton works for me:
ListBox1.AddRow ""
ListBox1.EditCell ListBox1.LastIndex,0
Terry
On Dec 8, 2006, at 8:48 AM, Harald Schneider wrote:
Hi,
I have a listbox with editable columns. I add a row with AddRow and
then I'd like to activate an input cursor on the first cell in that
row. Calling EditCell(x.LastIndex,0) has no effect. Clicking into
that cell works.
Any thoughts ?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>