Vcl.Samples.Calendar.TCalendar

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.Grids.TCustomGridVcl.Controls.TCustomControlVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTCalendar

Delphi

TCalendar = class(TCustomGrid)

C++

class PASCALIMPLEMENTATION TCalendar : public Vcl::Grids::TCustomGrid

Properties

Type Visibility Source Unit Parent
class public
Vcl.Samples.Calendar.pas
Vcl.Samples.Calendar.hpp
Vcl.Samples.Calendar Vcl.Samples.Calendar

Description

TCalendar is a component that displays the month calendar of the specified year.

TCalendar is a visual component that is able to display a month calendar of the current day, month, and year. You can change the displayed date using the Day, Month, and Year properties at run time, or in the Object Inspector, at design time.

Note: TCalendar is a component delivered in the \source\Vcl\ directory and might not be available to all editions of the software.

To add TCalendar to the Tool Palette, if the source code is available, perform the following steps:

  1. Confirm that the source code exists in \source\Vcl\Vcl.Samples.Calendar.pas.
  2. Click Component > Install Packages.
  3. Scroll down and check Embarcadero Sample Components.

To access TCalendar and use it in your code:

  1. In a VCL project, in design mode, open the Samples section of the Tool Palette.
  2. Drag a TCalendar component to the form.
  3. In the code, add Calendar to the Uses clause.

To see the Calendar.pas source code, add it to the search path:

  1. Click Project > Options > Delphi Compiler > Search path.
  2. Click the right side and then click the browse (...) button.
  3. Add the directory to the search path.
  4. To see the source code in the editor, CTRL+Click on Calendar (look in the Uses clause).

See Also

Code Examples