Hello,
I was wondering, if I call DmNewHandle like this, am I creating a handle
that is large enough for a form?
DmOpenRef resourceDB; // for this example, assume its already
created, and open.
void *newResource;
VoidHand handle;
FormPtr formPtr; // also assume I have called
FrmNewForm() already, and created a form.
handle = DmNewHandle(resourceDB, sizeof(FormType));
//^^^^^^^^^^^^^^^^^^^
newResource = MemHandleLock(handle);
DmWrite(newResource, formPtr);
MemHandleUnlock(handle);
DmAttachResource(resourceDB, 'tFRM', handle);
My main concern is that the form has a list of objects (fields, labels,
buttons). Do I need to calculate
the size of these items as well as that of the form, before I attach the
form, or is the code above, correct?
I'm having trouble understanding weather these other created items are
pointed to, or weather they are
part of the resource DB record (serial).
Thanks for any help,
Steve Austin