hmCal_GET OBJECT RECT

hmCal_GET OBJECT RECT(area;type1;type2;type3;left;top;right;bottom)

Parameter          Type             Description
area               Longint      ->  hmCal area
type1              Longint      ->  type 1
type2              Longint      ->  type 2
type3              Longint      ->  type 3
left               Longint      <-  left coordinate
top                Longint      <-  top coordinate
right              Longint      <-  right coordinate
bottom             Longint      <-  bottom coordinate

Contents

Description

The command hmCal_GET OBJECT RECT returns the coordinates of a specific area of the hmCal area in the current window. The values returned by the command are pixel coordinates. Following types are available:


Types

1 (Inner calendar area)

type2 and type3 are 0:



2 (Multidayarea)

type2 and type3 are 0:



3 (Header)

type2 and type3 are 0:



4 (Multidaysplitter)

type2 and type3 are 0:



5 (Entire hmCal area)

type2 and type3 are 0:



6 (Entire inner area (without scrollbars))

type2 and type3 are 0:



7 (Listarea)

type2 and type3 are 0:



8 (vertical splitterarea)

type2 and type3 are 0:



9 (Appointment in the project view)

type2 is the appointment reference and Typ3 is 0:



Example

The following example returns the coordinates of the inner calendar area:

C_LONGINT($vl_left;$vl_top;$vl_right;$vl_bottom)

$vl_left:=0
$vl_top:=0
$vl_right:=0
$vl_bottom:=0
hmCal_GET OBJECT RECT (hmCal;1;0;0;$vl_left;$vl_top;$vl_right;$vl_bottom)