IUP - Portable User Interface


Updates the size and layout of controls after changing size attributes. Can be used for any element inside a dialog or for the dialog itself. It can change the layout of all the controls inside the dialog because of the dynamic layout positioning.


int IupRefresh(Ihandle *element); [in C]
iup.Refresh(element: ihandle) -> (ret: number) [in Lua]

element: identifier of the interface element.


This function will not change the size of the dialog. Changing the size of the controls may position some controls outside of the dialog on the left or bottom borders.

If you want to also change the size of the dialog use:

IupSetAttribute(dialog, "SIZE", NULL);

so the dialog will be redisplayed with the new size.