Unit 'mui' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

MUIM_GetUData

Declaration

Source position: mui.pas line 673

const MUIM_GetUData = $8042ed0c;

Description

DoMethod(obj, MUIM_GetUData, [udata: IPTR, Attr: LongWord, Storage: PLongWord]);

UData
- userdata to look for.
Attr
- attribute to get.
Storage
- place to store the attribute.

This method tests if the MUIA_UserData of the object contains the given UData and gets Attr to Storage for itself in this case.

Although this is not very useful for single objects, performing this method on objects that handle children can become very handy. In this case, all the children (any maybe their children) are searched against UData and the first matching objects will be asked for the specified attribute.

Note: If you have many objects in your application, MUIM_GetUData may take quite long. You can limit the amount of time by performing the method not on the application but on the window or even on the group/family your objects are place in.

See also

MUIM_FindUData

  

Find a userdata in objects and childrens list and return the object

MUIM_SetUData

  

Find a userdata in objects and childrens list and set an attribute of the object


Documentation generated on: 2021-07-30