# IupPostMessage

Definition: | include pGUI.e IupPostMessage(Ihandle ih, nullable_string s, integer i, atom d, p)
Description: | Sends data to an element, that will be received by a callback when the main loop regains control. It is expected to be thread safe. ih: identifier of the interface element. s: string. Can be NULL. It will be internally duplicated if not NULL. i: integer number. d: floating point number. p: generic pointer. The variables are stored when the function is called, to be later passed to the callback. It will work even for non native elements. If IupPostMessage is called, the callback must be defined or there will be a memory leak. Affects: All controls.
pwa/p2js: | Not supported.
Callbacks: |
POSTMESSAGE_CB | function postmessage_cb(Ihandle ih, string s, integer i, atom d, p) ih: identifier of the element that activated the event. s: string. i: integer number. d: floating point number. p: generic pointer.
Example: | None as yet.