IUP_RESIZE_CB

IUP - Portable User Interface

RESIZE_CB

Action generated when the canvas size is changed.

Callback

int function(Ihandle *self, int width, int height); [in C]
elem:resize(width, height: number) -> (ret: number) [in IupLua3]
elem:resize_cb(width, height: number) -> (ret: number) [in IupLua5]

self: identifier of the canvas that activated the function's execution.
width: new canvas width, in pixels.
height: new canvas height, in pixels.

Note

This action is also generated right after the dialog is viewed by means of functions IupShow, IupShowXY or IupPopup.

In Windows, it is also generated after a map and before show.

Affects

IupCanvas