double click time

Hi,
   How can I know how many milliseconds are set in system for double-click event, in windows and mac??

thank you very much

···

--
/\/\ariano Di Felice
Java PHP Python Ruby programmer
with MySQL, PostgreSql, SQLite and Oracle support
Linux Platform Developer
mariano.difelice@gmail.com
Tel. 0735 703735
Cell +39 339 6407211

Hi Mariano,

Hi,
  How can I know how many milliseconds are set in system for
double-click event, in windows and mac??

thank you very much

I have no idea on Mac, but on Windows, if you have ctypes OR Mark
Hammond win32all package installed, you can try something like:

import ctypes
dblClickTime = ctypes.windll.user32.GetDoubleClickTime()

Or:

import win32gui
dblClickTime = win32gui.GetDoubleClickTime()

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

···

On 5/29/07, Mariano Di Felice wrote:

This is handled by the native system and you'll get different events
for double clicks vs regular clicks. I can't think of any reason you'd
need to emulate it in your own code (unlike some other cases, like how
much the cursor needs to move for it to count as a double click),
you'll have to use ctypes to access the native APIs for this.

···

On 5/29/07, Mariano Di Felice <mariano.difelice@gmail.com> wrote:

Hi,
   How can I know how many milliseconds are set in system for
double-click event, in windows and mac??

Mariano Di Felice wrote:

Hi,
  How can I know how many milliseconds are set in system for double-click event, in windows and mac??

Hmm... I thought we had a wx.SystemSettings.GetMetric ID for it, but I don't see it now...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I assumed we had one too, but since theres the _DCLICK events I
couldn't find a use case when I started thinking about it. You need
the x/y rectangle when you're implementing owner-drawn sub windows (as
in OGL), but not the timing.

···

On 5/29/07, Robin Dunn <robin@alldunn.com> wrote:

Mariano Di Felice wrote:
> Hi,
> How can I know how many milliseconds are set in system for
> double-click event, in windows and mac??

Hmm... I thought we had a wx.SystemSettings.GetMetric ID for it, but I
don't see it now...