IUP/Dialogs/IupDestroy: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Created page with "__NOTOC__ =IupDestroy= :Destroys an interface element and all of its descendants. Only dialogs, timers, popup menus and images should be normally destroyed, but detached cont..."
 
 
Line 6: Line 6:
===Parameters/Return===
===Parameters/Return===


:iup.destroy('''element''': ihandle)
:iup.Destroy('''element''': ihandle)


:'''element''': Identifier of the interface element to be destroyed.
:'''element''': Identifier of the interface element to be destroyed.

Latest revision as of 04:50, 9 May 2023

IupDestroy

Destroys an interface element and all of its descendants. Only dialogs, timers, popup menus and images should be normally destroyed, but detached controls can also be destroyed.

Parameters/Return

iup.Destroy(element: ihandle)
element: Identifier of the interface element to be destroyed.

Notes

This function deletes also the names associated to the interface elements being destroyed. It does not free the memory of attribute values that were allocated by the application.
Images associated with controls are not destroyed, because images can be reused in several controls the application must destroy them when they are not used anymore.