gettingstarted
[Top] [All Lists]

Re: Double and Cell Clicks Not Recognized

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Double and Cell Clicks Not Recognized
From: Terry Ford <tmford at shaw dot ca>
Date: Thu, 28 Dec 2006 12:53:11 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <FDA194BB-8717-4BB0-935E-8C7C6FE0B83D at pcisys dot net> <33BC4E9A-4851-4FCD-BFA6-DD2227AB022B at declareSub dot com> <9229A849-E992-4847-BE7F-6220DA53F811 at pcisys dot net> <05865905-2E23-481A-8566-D5D92DB4F570 at shaw dot ca> <59544B9A-F10F-4565-8E96-68646D5A1985 at pcisys dot net> <4C84BE38-DB1E-494A-AAC7-0C71689EA74E at shaw dot ca> <8863474C-6941-48C0-B7DB-63536C5D69F7 at pcisys dot net> <B5F381D6-B98E-41EA-9580-6EF07E8530C3 at shaw dot ca> <BE46C37C-D524-435E-9A77-88B20046CD24 at pcisys dot net>

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>


<Prev in Thread] Current Thread [Next in Thread>