On 2/9/07, Dennis Birch <[EMAIL PROTECTED]> wrote:
On 2/9/07, Peter K. Stys <[EMAIL PROTECTED]> wrote:
> I have a list box with several columns, 2 of which are editable.  When
> I double-click an editable cell to make it active (text selected),
> then push a test button with myListBox.DeleteAllRows, all rows are
> deleted except the text in the cell that was editable remains visible
> in the listbox.
>
> This only happens in RB2007r1; same code recompiled with RB2006r4 does
> not exhibit this anomaly.
>
> Has anyone seen this and how do I delete all rows AND make the
> selected text disappear as well.

It sounds like a workaround that sets the focus on the containing
window (to clear the editcell focus) before your call to DeleteAllRows
might be in order.


I tried this (ClearFocus): it doesn't work. The focus is cleared, but
the active cell's text persists, and will not change until I  manually
click to another cell in the listbox (even manually clicking into
another control on the window does not work: that cell persists in
thinking it is active/editable and refuses to give up it's old text,
UNLESS another cell in that listbox is selected...then that cell
exhibits the same problem).

This only started in RB2007r1 so RS seems to have screwed up something
about listboxes in the latest release.

P.



--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel:    (613)761-5444
fax:    (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to