published属性不能在object inspector中看见,为什么?解决办法

published属性不能在object inspector中看见,为什么?近日看资料知道published级别的属性可以在object insp

published属性不能在object inspector中看见,为什么?
近日看资料知道published级别的属性可以在object inspector中看见,但是我在一个窗体类中声明了一个published属性。总也不能在object inspector看见,为什么?如何才能看见呢?
请看我写的如下代码:就是新建一个窗体类,在里面建立了一个published属性,并分别设立了读写方法。
unit MyBaseClass;

interface

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

type
  TFmBase = class(TForm)
  private
  function Getexcel:word;
  procedure Setexcel(value:word);
  published
  property Pexcelflag:word read Getexcel write Setexcel;
  end;

var
  FmBase: TFmBase;

implementation

{$R *.dfm}

function TFmBase.Getexcel:word;
begin
  result:=Pexcelflag;
end;
procedure TFmBase.Setexcel(Value:word);
begin
  Pexcelflag:=value;
end;


[解决办法]
要通过组件单独安装。