RESIZE_CB

IUP - Portable User Interface

RESIZE_CB

Action generated when the element size is changed.

Callback

int function(Ihandle *ih, int width, int height); [in C]
elem:resize_cb(width, height: number) -> (ret: number) [in Lua]

ih: identifier of the element that activated the event.
width: the width of the internal element size in pixels not considering the decorations (client size)
height: the height of the internal element size in pixels not considering the decorations (client size)

Notes

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, IupGLCanvas, IupDialog