> LOCAL lnPosX, lnPosY, selmenu, OutputChoice > > Thisform.ScaleMode = 0 && Foxels > lnPosX = This.Left > lnPosY = This.Top > Thisform.ScaleMode = 3 && Back to Pixels > > selmenu = 0 > > define popup OutputChoice shortcut relative from (lnPosY),(lnPosX) > on selection popup OutputChoice selmenu = 1 > define bar 1 of OutputChoice prompt "Preview Work Order" > define bar 2 of OutputChoice prompt "Print Work Order " > > activate popup OutputChoice >>
Thisform.ScaleMode = 0 && Foxels lnPosX = This.Left lnPosY = This.Top Thisform.ScaleMode = 3 && Back to PixelsThis normally will always be zero: it's the position of the checkbox relative to its container. So, you have to go up in the container hierarchy to find out the real position of the checkbox. This must include all (visible) rows and columns and other graphical elements of the grid (delete marks, record marks, ...). If the grid is inside a pageframe, then that must also be taken in consideration.