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