1. Mouse Events and Win32Lib

[Win32Lib Update]

I've made too many changes to Win32Lib to confidantly post an update; I'll
send it to Robert after I get a chance to hammer on it a bit.

[Mouse Events]

I'm in the process of adding more mouse events to Win32Lib. At this point,
I'm contemplating taking a different approach than VB, and creating the
following mouse event trap:

    onMouseButton( event, button, x, y, flags )

Possible values are:

    Events:
        MOUSE_MOVE
        BUTTON_DOWN
        BUTTON_UP
        DOUBLE_CLICK
    Buttons:
        LEFT_BUTTON
        RIGHT_BUTTON
        MIDDLE_BUTTON
    Flags:
        SHIFT_FLAG
        CTRL_FLAG

The following code would be impacted:

    onDoubleClick        eliminated
    onRightClick           eliminated
    onClick                    {x,y} dropped as parameters

If there is really a lot of overhead associated with polling the routine on
each mouse move, I could always add a mouseEvents() type routine to ignore
certain events.

Comments?

-- David Cuny

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu