On Dec 28, 2006, at 10:39 AM, Chuck Pelto wrote:

I can see where the MouseDown can detect a non-existing row. How can we get it to detect a DoubleClick in an non-existing row?

By detecting a DoubleClick in the MouseDown event.

If you like, I'll send you an example off list (No attachments allowed in the lists). You (or anyone else) can write me directly if you are interested.

I'll accept any advice you can provide in order to avoid unusually cumbersome code.

Contact me off-list then. :)

REALbasic's ListBox is one of the most complex controls and often a "One Size Fits All" solution is not possible.

It has CellClick and DoubleClick events that only work in certain circumstances and, when used as intended, work great. It's only when one wishes to step outside the envelope that they run into trouble or confusion. Fortunately there are ways and means to use the properties of the listbox to accommodate them. The problem is that each solution is based upon the circumstances surrounding a Click or DoubleClick of the mouse.

In the Examples provided with Rb there is a Double-clickable Canvas example in the Classes Folder. This example (from 2001) will give you the code for detecting the DoubleClick time based on Mouse-Up.

It also *only* works (as is) in Mac PEF, OS9, Windows or Linux. Modifications must be made to the declares for Mach-O or UB usage.

Also, because one often needs other events to respond in a ListBox one must modify it for the MouseDown event.

Terry

PS. All direct e-mails are welcome.




_______________________________________________
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