So, if I use the same bitmap resource in multiple places on one form, there is no way to independently access each instance of the bitmap? For example, I may want to hide one instance of the bitmap without hiding another instance that is on my form.
There must be some way to do this without making multiple copies of the bitmap resource, right? "Ben Combee" <[EMAIL PROTECTED]> wrote in message news:94270@palm-dev-forum... > > At 10:22 PM 8/23/2002 +0200, you wrote: > >Sorry, but > > > >1) question: > >The object ID, is not necesary unique object ID in a form? > >In the constructor not is posible assing the object ID=1008 to a button ana > >simultaneously a un bitmap. > > The problem is how form bitmaps are represented in a form. Most items in a > form have a object ID. Form bitmaps do not -- they can't be addressed by > FrmGetObjectIndex, because no ID for these is actually stored in the form > object. So, Constructor instead gives you an identifier that maps to the > ID of the bitmap family to which the form bitmap object points. It is > valid for this ID to overlap the ID another form object. > > >2)question; > >if in constructor I define the object ID for LogBMReceiveBitMap=1004, why > >the header file set object ID=bitmap ID=2002? > >if I need use FrmHideObject(frmP,FrmGetObjectIndex(frmP, objectID)); and I > >set objectID=1008, what object is Hide, si I use the definition above? > > FrmShowObject and FrmHideObject work for form bitmaps, but the odd thing is > that you actually use the object ID of the bitmap to which the form bitmap > points, rather than an ID that's inside the form's own range. This can > lead to odd overlaps that Constructor won't catch, since your form can have > an item with an ID number that overlaps the ID of the bitmap family. > > The actual object ID for the form bitmap is ignored -- it gets used to > store this form bitmap object in the .rsrc file, but after PalmRez converts > everything to a PRC file, it no longer exists. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
