[previous] [up] [next]     [contents] [index]
Next: Utilities Up: Primitive Actions Previous: Menu Bars

Mouse Actions

For clicking the mouse in the current window:

(mred:test:mouse-click x y)
x, y :
reals

Simulates clicking the mouse at position x, y (pixels) in the currently focused window (which must have an on-event method).

Note: Currently only supports a left mouse click in the current window.

For moving between windows:

(mred:test:new-window window)
window :
a wx:window

Moves the keyboard focus to a new window within the currently active frame. The only way to move between frames is to create a new one. That is, this function cannot cause the focus to move from the top-most (active) frame.



PLT