faceplate/detail positioning

Hi,

Within the project I am working, one of features should be the ability to open the faceplate/detail of a module near the dynamo.

The current version which I have reached so far is to use GetCursorPos to get the coordinates of the cursor (in pixels) and to call afterwards frsSetPictureCoordinates to position the faceplate/detail after the call of frszdynamoloadia.

Now I am encountering problems with finding the faceplate or detail height/width in pixels in order to position properly the faceplate/detail when the dynamo is located near the corners of the main pricture.

I am aware of the function frsPicWidth or frsPicHeight where the argument is a member of DV_PICTURES which can be FACEPLATE, DETAIL, MAIN_PICTURE and so on, but the function returns the value 0 when I call it after frszdynamoloadia.

Regards,

Dan.