How does 'PMIA_Object' work?

This forum is for general developer support questions.
Post Reply
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 10:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

How does 'PMIA_Object' work?

Post by javierdlr »

Hi trying to figure how 'PMIA_Object' works, what I'm doing is:

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);
..
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
Post Reply