YOUSEFUL / DELPHI / COMPONENTS
TAtlasAppointmentRect
An appointment ID with the rectangle it occupies in the last rendered scheduler view.
Description
Internal bookkeeping type of TAtlasScheduler, exposed in the interface section: one record per drawn block, filled by Render and consulted by HitTest. Applications normally use HitTest rather than these records.
Members
| Member | Kind | What it does |
|---|---|---|
ID | field | Appointment ID of the block. |
Bounds | field | Pixel rectangle of the block in the coordinates passed to Render (at least 4 pixels tall). |
Fields
ID field
TAtlasAppointmentRect = record ID: Integer; Bounds: TRect; end;Appointment ID of the block.
Bounds field
TAtlasAppointmentRect = record ID: Integer; Bounds: TRect; end;Pixel rectangle of the block in the coordinates passed to Render (at least 4 pixels tall).
Examples
Ask the view what is under the mouse
HitTest consults the recorded rectangles; 0 means empty space.
uses Atlas.Scheduler;
function AppointmentUnderMouse(Scheduler: TAtlasScheduler; X, Y: Integer): Integer;
begin
Result := Scheduler.HitTest(X, Y); // 0 when the point is not on a block
end;Related
Also in Atlas VCL
TAtlasTable · TAtlasGrid · TAtlasValueEdit · TAtlasTree · TAtlasWorkbook · TAtlasSheetGrid · TAtlasPivot · TAtlasInspector · TAtlasRichEdit · TAtlasSpellChecker · TAtlasChart · TAtlasGauge · TAtlasThemer · TAtlasWizard · TAtlasWorkspace · TAtlasCommandBar · TAtlasActionTile · TAtlasTileBoard · TAtlasNavigation · TAtlasMap · TAtlasGraph · TAtlasDiagram · TAtlasPrintDocument · TAtlasSchedule · TAtlasScheduler · TAtlasTaskPlan · TAtlasGantt · TAtlasPdfDocument · TAtlasPdfViewer