Source position: mui.pas line 619
const MUIM_GetUData = MUIB_MUI or $42ed0c; |
DoMethod(obj, MUIM_GetUData, [udata: IPTR, Attr: LongWord, Storage: PLongWord]);
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.
|
Find a userdata in objects and childrens list and return the object |
|
|
Find a userdata in objects and childrens list and set an attribute of the object |