Class TCastleRecentFiles

Unit

Declaration

type TCastleRecentFiles = class(TRecentFiles)

Description

Manage a list of recently opened files, and show a menu in Lazarus.

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TRecentFiles
  • TCastleRecentFiles

Overview

Methods

Protected procedure MenuCreate; override;
Protected procedure MenuDestroy; override;

Properties

Public property NextMenuItem: TMenuItem read FNextMenuItem write SetNextMenuItem;

Description

Methods

Protected procedure MenuCreate; override;

This item has no description. Showing description inherited from TRecentFiles.MenuCreate.

Create and destroy menu (or anything else that mirrors Urls contents).

Protected procedure MenuDestroy; override;

Destroy the menu. Internal (do not call this directly, it's only called by parent class). Note that it doesn't read Urls list at all, it only depends on FirstSeparator value.

Properties

Public property NextMenuItem: TMenuItem read FNextMenuItem write SetNextMenuItem;

Determines the placement of "recent files" list inside your menu.

If this is not Nil then each update to the recent files list (for example by Add method) will result in the menu items right before NextMenuItem to be updated.

Also changing the value of this property will result in one-time update of the menu. Menu at the place of old NextMenuItem will be removed and menu at the place of new NextMenuItem will get created.

Usually NextMenuItem should be the separator that divides the print and properties menu sections and the close menu sections. That's consistent with other GNOME programs, and this is what we usually try to follow.


Generated by PasDoc 0.16.0-snapshot.