Project

General

Profile

Previous Up Next

_CBcontainerClick
Defines a user callback on a click event in the container

ObjContainer _CBcontainerClick (
ObjContainer _container_
fun [ObjContainer u0 I I I I] u1 _callback_
u0 param
)
Parameters

_container_
any ObjContainer
_callback_
callback function on mouse click (supplemental parameters are x, y, btn and mask
x and y are cursor coordinates in container
btn can be any of following values :
Value Meaning
LBUTTON left button is clicked
MBUTTON middle button is clicked
RBUTTON right button is clicked
mask is a combination of values :
Value Meaning
MK_CONTROL control key is pressed
MK_LBUTTON left button is pushed
MK_MBUTTON middle button is pushed
MK_RBUTTON right button is pushed
MK_SHIFT shift key is pushed
param
user parameter
Return value

same ObjContainer