简体   繁体   English

在Delphi中,TPropertyAttributes集的paVCL标志表示结果属性编辑器

[英]In Delphi, what does the paVCL flag of the TPropertyAttributes set indicate about the resulting property editor

The TPropertyAttributes set in the DesignIntf unit includes the paVCL flag. DesignIntf​​单元中设置的TPropertyAttributes包含paVCL标志。 However, the purpose of this flag is not documented. 但是,没有记录此标志的用途。 I found a reference (in German) that suggested that the property editor was a WinCLX property editor, but that doesn't sound right. 我找到了一个引用(德语),建议属性编辑器是一个WinCLX属性编辑器,但这听起来不对。

What does the paVCL flag of the TPropertyAttributes set indicate about the resulting property editor? TPropertyAttributes集的paVCL标志表示结果属性编辑器是什么?

I'm pretty sure that your reference is correct. 我很确定你的参考是正确的。

Several of the uses of paVCL in the source outside DesignIntf (in BindCompDBReg, BindCompReg, ColnEdit, FldLinks, LMidReg, and VclDBReg) are surrounded by {$IFDEF LINUX} blocks, and this define first appeared in Delphi 6 when CLX was added for Kylix. 在DesignIntf​​外部的源中使用paVCL几个用法(在BindCompDBReg,BindCompReg,ColnEdit,FldLinks,LMidReg和VclDBReg中)被{$IFDEF LINUX}块包围,这个定义首先出现在Delphi 6中,当时为Kylix添加了CLX 。

It appears to indicate that the property editor is relevant only to the VCL version of the component, which is most likely because of the way CLX was integrated into things. 它似乎表明属性编辑器仅与组件的VCL版本相关,这很可能是因为CLX被集成到事物中的方式。 (CLX used the same component names and most of the same properties and types, and was really only differentiated by having a Q at the beginning of the unit names. The VCL used Forms , for instance, while CLX used QForms ; in the actual code that used TForm , however, there were almost no differences between them.) (CLX使用相同的组件名称和大多数相同的属性和类型,并且实际上仅通过在单元名称的开头具有Q区分。例如,VCL使用Forms ,而CLX使用QForms ;在实际代码中然而,使用过TForm ,它们之间几乎没有差异。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM