Dlgpos

From Visual DialogShell Wiki
Jump to navigation Jump to search
function dlgpos ($a,$b) {
   switch ($b) {
       T {
           return $a.Top
       }
       L {
           return $a.Left
       }
       W {
           return $a.Width
       }
       'H' {
           return $a.Height
       }
   }
<#
   .SYNOPSIS
   Returns the an element of a dialog position, T for top, L for left, W for width or H for height.
    
   .DESCRIPTION
    VDS
    $(dlgpos $textbox1 T)
    
   .LINK
   https://dialogshell.com/vds/help/index.php/dlgpos
#>  
}