Need to look into this further. 2 and 16 seem to draw the image verbatim like 0. Nothing is being drawn when setting any other flags. (Could it be related to some other properties on the surface descriptor such as transparent color?)
Global CreateButton (unsigned short tag, short x0, short y0, short x1, short y1, UTF16 *label, unsigned int event, unsigned short flags)
Test the event behavior. This needs more reverse engineering on the view event handling process.
Figure out the flags.
Global CreateFile (const char *pathname, unsigned int access, unsigned int shmode, void *secattr, unsigned int on_noentry, unsigned int flags, void *template_file)
Documentation on accepted arguments are mostly based on speculations at this moment. More details and through verifications needed.
Find a way to make the callbacks respect subtypes? Currently type-specific callbacks need to have their self argument defined as ui_component_t * (or void * if we opt to do that) which is a bit less ideal.