hmCal_GET OBJECT RECT

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

Parameter          Type             Description
area               C_LONGINT    ->  hmCal area
type1              C_LONGINT    ->  type 1
type2              C_LONGINT    ->  type 2
type3              C_LONGINT    ->  type 3
left               C_REAL       <-  left coordinate
top                C_REAL       <-  top coordinate
right              C_REAL       <-  right coordinate
bottom             C_REAL       <-  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 type3 is 0:



10 (Column in the user multi day view and project view)

type2 is the column ID, type3 is 0:



11 (Cell in the user multi day view and project view)

type2 is the column ID, type3 is the user ID (user multi day view) or the appointment ID (project view):



Example

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

C_REAL($vz_left;$vz_top;$vz_right;$vz_bottom)

$vz_left:=0
$vz_top:=0
$vz_right:=0
$vz_bottom:=0

hmCal_GET OBJECT RECT (hmCal;1;0;0;$vz_left;$vz_top;$vz_right;$vz_bottom)