Okay, I have a weird one...

The FrmSetObjectPosition routine seems to have no affect on 2.0 units
(haven't tried on a 1.0 unit).

Here is what I did.  I have a bitmap in the form and what I need to do is
move it to the correct location based on some user choices in the
preferences screen and than draw it there when the form draws itself.  On
3.0 and higher units, this works fine.  But on 2.0 units, the bitmaps
(bitmapID) draw wherever they are in the constructor.  The code is as
follows:

        frmP = FrmGetActiveForm();
        ctlP = GetObjectPtr(buttonID);
        FrmSetObjectPosition(frmP, FrmGetObjectIndex(frmP, bitmapID),
                        ctlP->bounds.topLeft.x,ctlP->bounds.topLeft.y);
        ShowHideObject(bitmapID, true);  // routine to draw the object

I am drawing the bitmap over-top of a button, thus buttonID.  Does anyone
have an answer to this perplexing problem?  Or a different method that will
work?

Thanks in advance.
Elia

Reply via email to