Class TStringsCalendar (unit Enhcalnd)

Inherits from

TBaseCalendar

Constructors


constructor Create(AOwner: TComponent);

Public declarations

TStringsCalendar



Functions

procedure ClearAllDays;

ClearAllDays - method to clear cells

destructor Destroy;

set drag methods

procedure AcceptDropped(Sender, Source: TObject; X, Y: integer);

AcceptDropped override

procedure CellDragOver(Sender, Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);

CellDragOver override

procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState);

Protected declarations

DrawCell


function GetCalStrings(ACol, ARow: integer): TStringList;

GetCalStrings - allows access to cells stringlist object.

procedure SetCalStrings(ACol, ARow: Integer; Value: TStringList);

add the line of text

procedure SetCellString(ACol, ARow, ADay: Integer; Value: string);

SetCellString - adds a string to the cells stringlist based on Col or Row or Day of month.

Properties

property Align :


property BlockedColor :


property BlockWeekends :


property BorderStyle :


property Color :


property Ctl3D :


property DragCursor :


property DragMode :


property Enabled :


property FixedColor :


property FixedHeader :


property Font :


property ParentColor :


property ParentCtl3D :


property ParentFont :


property ParentShowHint :


property PopupMenu :


property ReadOnly :


property ShowHint :


property StartOfWeek :


property TabOrder :


property TabStop :


property Visible :


property CalStrings : TStringList


property CellString : string


Events

event OnCellDragOver : TCellDragOver


event OnClick :


event OnDateChange :


event OnDblClick :


event OnDroppedCell : TDroppedCell

Published declarations

event OnEndDrag :


event OnEnter :


event OnExit :


event OnKeyDown :


event OnKeyPress :


event OnKeyUp :


event OnMonthChange :


event OnMouseDown :


event OnMouseMove :


event OnMouseUp :


event OnNeedStrings : TNeedStrings


event OnYearChange :


Variables

FCalStrings : TCalendarStrings;

Private declarations

FOnCellDragOver : TCellDragOver;


FOnDroppedCell : TDroppedCell;


FOnNeedStrings : TNeedStrings;



Constructors


constructor Create(AOwner: TComponent);

Public declarations

TStringsCalendar


Functions


procedure ClearAllDays;

ClearAllDays - method to clear cells


destructor Destroy;

set drag methods


procedure AcceptDropped(Sender, Source: TObject; X, Y: integer);

AcceptDropped override


procedure CellDragOver(Sender, Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);

CellDragOver override


procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState);

Protected declarations

DrawCell


function GetCalStrings(ACol, ARow: integer): TStringList;

GetCalStrings - allows access to cells stringlist object. Useful for working with TList and TMemo


procedure SetCalStrings(ACol, ARow: Integer; Value: TStringList);

add the line of text


procedure SetCellString(ACol, ARow, ADay: Integer; Value: string);

SetCellString - adds a string to the cells stringlist based on Col or Row or Day of month.


Properties


property Align :


property BlockedColor :


property BlockWeekends :


property BorderStyle :


property Color :


property Ctl3D :


property DragCursor :


property DragMode :


property Enabled :


property FixedColor :


property FixedHeader :


property Font :


property ParentColor :


property ParentCtl3D :


property ParentFont :


property ParentShowHint :


property PopupMenu :


property ReadOnly :


property ShowHint :


property StartOfWeek :


property TabOrder :


property TabStop :


property Visible :


property CalStrings : TStringList


property CellString : string


Events


event OnCellDragOver : TCellDragOver


event OnClick :


event OnDateChange :


event OnDblClick :


event OnDroppedCell : TDroppedCell

Published declarations


event OnEndDrag :


event OnEnter :


event OnExit :


event OnKeyDown :


event OnKeyPress :


event OnKeyUp :


event OnMonthChange :


event OnMouseDown :


event OnMouseMove :


event OnMouseUp :


event OnNeedStrings : TNeedStrings


event OnYearChange :


Variables


FCalStrings : TCalendarStrings;

Private declarations


FOnCellDragOver : TCellDragOver;


FOnDroppedCell : TDroppedCell;


FOnNeedStrings : TNeedStrings;