RE: Double clicks not being trapped by onMouse (possible win32lib bug)

new topic     » topic index » view thread      » older message » newer message

Thomas Parslow (PatRat) wrote:
> The docs state that two of the events that can be passed to the
> onMouse event are LeftDoubleClick and RightDoubleClick however I'm not
> receiving either of these when I double click.

Thanks Thomas,
you found a new bug - of sorts.

To quickly fix this, locate the line in win32lib.ew that looks like this one
...

    vWindowClassStyle = {CS_HREDRAW, CS_VREDRAW }

and change it to ...

    vWindowClassStyle = {CS_HREDRAW, CS_VREDRAW, CS_DBLCLKS }

this will work fine now.

Alternatively, if you don't want to change the library code you can do this
in your program, before you create the first window...

    sequence x
    x = classDefaults(Window, {{CCwinstyle,{CS_HREDRAW, CS_VREDRAW,
CS_DBLCLKS }}} )

-----------
cheers,
Derek Parnell

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu