realbasic-nug
[Top] [All Lists]

Re: Double Click event not firing on a Listbox when cell is editable

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Double Click event not firing on a Listbox when cell is editable
From: Arnaud Nicolet <anic297 at mac dot com>
Date: Wed, 30 Jan 2008 12:16:14 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <6115AF64-54B3-4C7D-B59E-0360D5BD43F6 at alphaview dot com>
Le 30 janv. 08 à 09:49 matin, Giovanni a écrit:

> I am trying to have the Listbox run some code where if I double click
> the cell that I am working on, it will launch a window.
>
> But it seems that the event only fires up when the listbox isnt set to
> editable.
>
> Is there a workaround on this?

I don't know if it's standard behaviour, but, for what you want, RB  
should distinguish between double click and simple click (either to  
call the DoubleClick event or to enter the editable cell). The way to  
accomplish this would be, after the first click, to wait the same  
amount of time than GetDblClickTime (the double click time value  
provided by the OS) and only then enter the editable cell if no double  
click event is called. Worth a feature request?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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