%HI_GetPicturePosX, %HI_GetPicturePosY functions


Function
The functions return the positions of the picture on the screen or on the desktop of the D2000 HI process. 
Declaration
INT %HI_GetPicturePosX(
   [INT in _from := 0]
 )
 
 
 INT %HI_GetPicturePosY(
   [INT in _from := 0]
 )
Parameters
_fromOptional parameter. Possible values:
  • 0 - original (default) behavior (see the article Note 1)
  • 1 - position on the screen
  • 2 - position on the desktop of D2000 HI
Example
The function %HI_GetPicturePosX returns the distance of the left picture margin from the left screen margin, the function %HI_GetPictureSizeY returns the distance of the top picture margin from the top screen margin.
To set the picture size use the %HI_SetPicturePos function.
 


 INT _x
 INT _y
 
 _y := %HI_GetPicturePosX(1)
 _x := %HI_GetPicturePosY(1) 
Note 1
Original (default) behavior of the functions (i.e. if the parameter _from is not specified or its value is 0).

The functions returns:

A) For dialog or dialog modal picture windows - positions on the screen.

B) For other picture windows (so-called MDI windows) - positions on the desktop of the D2000 HI process.
Note 2
 The functions are not designed for working with the so-called dock pictures.
Note 3
This function is available also in %HIX_ version.
Napíšte komentár