David -
Thanks for the helpful info. Here are the details.
I have been using this code to put a bitmap on my main form at runtime:
ctlIndex = FrmGetObjectIndex( frmP, MainBitMapOne );
FrmSetObjectPosition( frmP, ctlIndex, x, y );
FrmShowObject( frmP, ctlIndex );
In testing with Poser (2.1d29 or 3.0a3) using rom2rel.rom,
FrmSetObjectPosition appears to have no effect. The bitmap is always drawn
at the Form Bitmap's design time location. I found that FrmSetObjectBounds
will move the bitmap on all ROM versions. I checked the online KB and the
docs and I didn't find anything saying that FrmSetObjectPosition won't work
with Palm OS 2.0, so I am left wondering when it is safe to use
FrmSetObjectPosition.
----- Original Message -----
From: "David Fedor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, January 28, 2000 7:41 PM
Subject: Re: FrmSetObjectPosition
> >Does anyone know why FrmSetObjectPosition doesn't work with rom2rel.rom?
Is
> >it a bug in the ROM, or will FrmSetObjectPosition actually not work with
> >Palm OS 2.0?
>
> FrmSetObjectPosition changes the position of an object, by writing
directly
> to its internal structures. However, it doesn't do anything to tell the
> object that it has moved, or redraw it, or anything like that. So
> depending on when you're changing the position, you may or may not get the
> results you want.
>
> You might want to call FrmHideObject before changing the position, and
show
> it afterwards. Depends on the object.
>
> Alternatively, try using FrmSetObjectBounds. That does inform some of the
> objects that they've been moved, but not all of them.
>
> Explaining what object you're trying to move, or details about how
> precisely it "doesn't work" would be immensely helpful to get you a better
> answer. Or perhaps this will let you figure it out.
>
> -David Fedor
> Palm Developer Support
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html