IUP_SCROLL_CB

IUP - Portable User Interface

SCROLL_CB

Called when some manipulation is made to the scrollbar. When this attribute is defined, the ACTION callback is not called in such cases.

Callback

int function(Ihandle *self, int op, float posx, float posy); [in C]
elem:scroll(op, posx, posy: number) -> (ret: number) [in IupLua3]
elem:scroll_cb(op, posx, posy: number) -> (ret: number) [in IupLua5]

op: indicates the operation performed on the scrollbar.
If the manipulation was made on the vertical scrollbar, it can have the following values:

IUP_SBUP - line up
IUP_SBDN - line down
IUP_SBPGUP - page up
IUP_SBPGDN - page down
IUP_SBPOSV - vertical position
IUP_SBDRAGV - vertical drag 

If it was on the horizontal scrollbar, the following values are valid:

IUP_SBLEFT - column left
IUP_SBRIGHT - column right
IUP_SBPGLEFT - page left
IUP_SBPGRIGHT - page right
IUP_SBPOSH - horizontal position
IUP_SBDRAGH - horizontal drag

posx, posy: the same as the ACTION canvas callback (corresponding to the values of attributes IUP_POSX and IUP_POSY).

Affects

IupCanvas