Listbox CellPressed event return value

Hi there,

In Windows returning True in the CellPressed event of the DesktopListbox control causes the DoublePressed event not to fire.

I this a bug or a design feature?

Gerard

From the docs:

CellPressed returns a Boolean. Returning Truemeans that the event will not be processed further (i.e., editable cells won’t be editable and ListBox selection won’t change).

So I guess returning true means do nothing with the cell anymore.

The first click of a double click is a click. If you handle that, Xojo does not. If you want to handle click, you can check for a doubleclick yourself.