-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Udi Kobi Sent: Friday, July 29, 2005 7:30 PM To: Palm Developer Forum Subject: One more try - control id
Hi there, 1) Is control ID == Object ID? >> Did not get your question control ID and object index are different 2) I have only the void *ptr, which points to the control's struct. >> Try FrmGlueGetObjIDFromObjPtr if it helps 3) FrmGetObjectId definition is: UInt16 FrmGetObjectIndex (const FormType *formP, UInt16 objID) ---> Do I have the objID of the control? >> Yes you have objID, which is the number gets created in ID attribute of the control in the resource file. You can directly use this number, or make #define MyBtn 1000 in your resource header file and use it. getting the object index requires the object ID and getting the object ID requires the object index I'd be glad to clear this issue, Regards, Udi -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
