⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 olitemsprop.pas

📁 请使用Mobile FBUS——用来创建与NOKIA手机连接的软件的理想解决方案!功能包括:发送SMS
💻 PAS
字号:
unit OLItemsProp;

interface

uses  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
     StdCtrls, DsgnIntf;

  type
    TOLItemsProperty = class (TClassProperty)
    public
      function GetAttributes: TpropertyAttributes; override;
      procedure Edit; override;
    end;

implementation

uses Outlook,OLItemForm;

{ TOLItemsProperty }

Var
ItemForm : TItemForm;

procedure TOLItemsProperty.Edit;
var OLItems : TOutlookItems;
begin
  ItemForm := TItemForm.Create(Application);
  try
    OLItems := TOutlookItems(GetOrdValue);
    ItemsInForm.AssignContent(OLItems);
    IF ItemForm.ShowModal = mrOk then
    begin
      OLItems.AssignContent(ItemsInForm);
      Designer.Modified;
      (GetComponent(0) as TOutlook).RefreshDisplay;
    end;
  finally
    ItemForm.free;
  end;

end;

function TOLItemsProperty.GetAttributes: TpropertyAttributes;
begin
  result := inherited GetAttributes + [paDialog] - [paSubProperties];
end;


end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -