DialogToGui - DfBaseWindow

This is used to convert dialog units to gui units.

Type: Function

Return Data Type: Integer

Parameters: Integer iHeight Integer iWidth

iHeightDialog height to be converted to gui units
iWidthDialog width to be converted to gui units

Return Value

A folded integer value, representing the height (hi) and width (low) in gui units

Function DialogToGui Integer iHeight Integer iWidth Returns Integer

Call: Get DialogToGui iHeight iWidth to IntegerVariable


DialogToGui is used to convert dialog units to gui units. This is passed a dialog height and a dialog width and it returns a folded value representing those values in gui units. The Hi value represents the height, the Low value represents the width.

This function returns a folded integer value.

When the value of the property is retrieved, the value of these two properties is returned as a folded integer. The value of these parameters can be accessed using the hi() and low() functions.

Get DialogToGui of oView iDialogY iDialogX to iSize
Move (Hi(iSize))  to iGuiY
Move (Low(iSize)) to iGuiX        

See Also

GuiToDialog | GuiClientSize | GuiWindowSize