How does 'PMIA_Object' work?
Posted: Wed Apr 30, 2014 3:09 pm
Hi trying to figure how 'PMIA_Object' works, what I'm doing is:
If I use instead 'PMIA_Icon' or 'PMIA_Image' it shows the text 'keymapdesc' has.
Is PMIA_Object broken? Or is not posible in the way I'm trying to use it?
I want to use 'imageM[0]' (object/image) like if it was 'PMIA_Title' (title/label of the menu option).
TIA
Code: Select all
struct FontISO
{
//struct TextFont *tf;
struct TTextAttr tta;
struct TagItem ti[2];
} fiso[3];
..
Object *chooseMenu, *imageM[3], *item1 = NULL;
STRPTR keymapdesc;
..
imageM[0] = IIntuition->NewObject(LabelClass, NULL,
IA_Font,&dd->fiso[2].tta, LABEL_Underscore,0,
LABEL_Text,keymapdesc, TAG_END);
..
item1 = IIntuition->NewObject(NULL, "popupmenuitem.class",
PMIA_ID, MENU_OPT1,
//PMIA_Title, "keymap0",
PMIA_Object, imageM[0],
TAG_END);
..
Is PMIA_Object broken? Or is not posible in the way I'm trying to use it?
I want to use 'imageM[0]' (object/image) like if it was 'PMIA_Title' (title/label of the menu option).
TIA