定义的publish的含义是什么啊和public有什么区别啊
解决方案 »
- cnwizards 一个安装程序,一个源代码 请问源代码有什么用
- Delphi通过ADO可以对MySQL4.1进行编程吗?如果不行,通过什么方法可以让delphi对mysql编程?
- 一个关于fr3自动生成报表的问题!求教高手
- 大家看一下,一个莱鸟的问题。 这是怎么回事?
- delphi中,用pagecontrol控制MDI窗口问题!!
- combobox的问题??急 用呀??
- delphi 三层开发 都有哪些成熟解决方案 大家都在用什么控件
- 请大家帮我看一下这个存储过程问题在那?
- 学DELPHI有用吗?我好像发现去考程序员时没有DELPHI这一项啊!?
- 请各位谈谈TACTIONLIST的用法,最好有实例。
- 紧急求救!在线等待!来者有分阿!!!
- 在开发MDI程序时,如何让子窗体显示在主窗体的一个TPanel控件里呢?
??????、
太抽象了
有没有具体点的啊
PUBLIC 编辑器里面看不到
Published members have the same visibility as public members. The difference is that runtime type information (RTTI) is generated for published members. RTTI allows an application to query the fields and properties of an object dynamically and to locate its methods. RTTI is used to access the values of properties when saving and loading form files, to display properties in the Object Inspector, and to associate specific methods (called event handlers) with specific properties (called events).Published properties are restricted to certain data types. Ordinal, string, class, interface, variant, and method-pointer types can be published. So can set types, provided the upper and lower bounds of the base type have ordinal values between 0 and 31. (In other words, the set must fit in a byte, word, or double word.) Any real type except Real48 can be published. Properties of an array type (as distinct from array properties, discussed below) cannot be published.Some properties, although publishable, are not fully supported by the streaming system. These include properties of record types, array properties of all publishable types, and properties of enumerated types that include anonymous values. If you publish a property of this kind, the Object Inspector won't display it correctly, nor will the property's value be preserved when objects are streamed to disk.All methods are publishable, but a class cannot publish two or more overloaded methods with the same name. Fields can be published only if they are of a class or interface type.A class cannot have published members unless it is compiled in the {$M+} state or descends from a class compiled in the {$M+} state. Most classes with published members derive from TPersistent, which is compiled in the {$M+} state, so it is seldom necessary to use the $M directive.
对于VCL控件,如果想让Delphi IDE也能识别,则要放在Publish里.