Expand/Shrink

IupElementPropertiesDialog

Definition: include pGUI.e

Ihandle ih = IupElementPropertiesDialog(Ihandln parent, Ihandleelem)
Description: Creates an Element Properties Dialog.
It is a predefined dialog to edit the properties of an element in run time.
It is a standard IupDialog constructed with other IUP elements.
The dialog can be shown with any of the show functions IupShow, IupShowXY or IupPopup.

Any existing element can be edited.
It does not need to be mapped on the native system nor visible.

This is a dialog intended for developers, so they can see and inspect their elements in other ways.

It contains 3 Tab sections:
one for the registered attributes of the element,
one for custom attributes set at the hash table, and
one for the callbacks.
The callbacks are just for inspection, and custom attributes should be handled carefully because they may be not strings.
Registered attributes values are shown in red when they were changed by the application.

parent: dialog to be used as parent for the properties dialog. Can be NULL. (since 3.28)
elem: identifier of the element to display the properties. Not optional.

Returns: the identifier of the created dialog.

Refer to IupDialog for details of available attributes and callbacks.
pwa/p2js: Not supported.
Callbacks: Check the IupDialog callbacks.
ATTRIBCHANGED_CB Called when an attribute is changed. (since 3.28)

function attribchanged_cb(Ihandle ih, atom pName)
ih: identifier of the element that activated the event.
pName: (char*) name of the attribute that changed.
Example: IupShow(IupElementPropertiesDialog(dlg,button)) shows the following:

See Also: IupDialog, IupShow, IupShowXY, IupPopup, IupLayoutDialog