谢了

解决方案 »

  1.   

    private 
         nX:integer;
    published
         property X:integer Read nX  {Write nX} ;
    就这样就可以了,只要不给它提供写的方法就好了.
      

  2.   

    Txxxx = class
      private
        Fxxx: String;
      published 
        property xxx: String read Fxxx;
    end;
      

  3.   

    private
        FCount: String;
      published 
        property Count: String read FCount;
      

  4.   

    最好你看一下delphi控件的一些写法。那是最好不过了!
      

  5.   

    可以添加一个空的write方法
    private
      FCount: String;
      procedure SetCount(const Value: String);
    published
      property Count: String read FCount write SetCount;procedure Txxx.SetCount(const Value: string);
    begin
    end;
      

  6.   


    delphi magazine 中我看过,delphi 3以前,用一个垃圾字段来处理,实际上没有作用,但可以显示出来published
      property Count: String read FCount write dumpfield;