Le 3 oct. 06 à 23:43 Soir, Guyren Howe a écrit:

On Oct 3, 2006, at 4:29 PM, Arnaud Nicolet wrote:

Instead of using the MouseDown event, can't you use the CellClick event? It acts like a mouse down event, but is called only when you click on a cell (i.e not on the scrollbar).

Or I didn't understand the question?

I don't believe I can do dragging from the CellClick handler.

Which drag? A drag reorder or a drag using the DragItem class?
If you're using the dragItem class, I don't see any problem.

Whoa. You've just shaken my world. I had always assumed that CellClick fired on MouseUp. What an absurd name! Now I've got to rewrite a whole bunch of ListBox code...

Not that it's relevant to me right now, but this would seem to leave us with a different problem: how to do something on an actual click (ie on mouseup in a cell). I could implement that with MouseDown and MouseUp, but it's crazy that there is a straightforward way to trap mouse down in a cell but not, apparently, mouse up.

Or am I missing something?

The CellMouseUp event (which does not exist...) could be implemented by RealSoftware (it's an event like any other).

In previous versions of RealBasic (3.x, 4.y?), there were only the MouseDown, MouseDrag and MouseUp events (no cellclick and no events related to cells at all). I think they added the CellClick (nammed so since there is no CellMouseUp and CellMouseDrag events) because of its needs while the CellMouseUp was not so important. I could be completely wrong, just an assumption._______________________________________________
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>

Reply via email to