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

StackOverflow https://stackoverflow.com/questions/22843934

  •  27-06-2023
  •  | 
  •  

Question

The TPropertyAttributes set in the DesignIntf unit includes the paVCL flag. 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.

What does the paVCL flag of the TPropertyAttributes set indicate about the resulting property editor?

Was it helpful?

Solution

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.

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. (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.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top