Syntax 5: For windows and progress bars
Description
Occurs when the user clicks in an unoccupied area of the window or
progress bar (any area with no visible, enabled object).
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_lbuttonclk |
Window |
|
pbm_lbuttondwn |
HProgressBar, VProgressBar |
Arguments
|
Argument |
Description |
|---|---|
|
flags |
UnsignedLong by value (the modifier keys and mouse Values
In the Clicked event for windows, the For an explanation of flags, see |
|
xpos |
Integer by value (the distance of the pointer from |
|
ypos |
Integer by value (the distance of the pointer from |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Usage
The Clicked event occurs when the user presses the mouse button
down in progress bars and when the user releases the mouse button in
windows.
If the user clicks on a control or menu in a window, that object
(rather than the window) gets a Clicked event. No Clicked event occurs
when the user clicks the window’s title bar.
When the user clicks on a window, the window’s MouseDown and
MouseUp events also occur.
When the user clicks on a visible disabled control or an invisible
enabled control, the window gets a Clicked event.
Examples
If the user clicks in the upper left corner of the window, this
code sets focus to the button cb_clear:
|
1 2 3 |
IF (xpos <= 600 AND ypos <= 600) THEN cb_clear.SetFocus( ) END IF |
See also