Leaving listbox edit mode

Hi,

Directly editing cells in a listbox usually requires the user to tab out of a cell in order to clear edit mode in that cell (set up with listbox.EditCell). I also need tobe able to clear edit mode when I click on another control (e.g a button, tabpanel). How can that be achieved?

I’m using Xojo 2015 v3.1 on an iMac

Set the Type to Normal, once the ListBox looses the focus.

The TextField losing focus should close it… So alternatively if what you click on does not accept the focus. doing a Window.ClearFocus should work.

I can click directly in another Cell (even a cell in another row) to edit it (tabbing is not mandatory).

Listbox1.visible = False ListBox1.visible = True