[Lazarus] Is this bug ? or how to do?

Martin Frb lazarus at mfriebe.de
Thu Feb 27 20:44:34 CET 2014


On 27/02/2014 10:18, FreeMan wrote:
> Hello,
> I'm writeing my exlookup component, I add 2 datasource and 3 field. 
> Like a dblookupcombobox.
> my component's properties:
>     FDataField : TFieldDataLink;
>     FListField : TFieldDataLink;
>     FKeyField  : TFieldDataLink;
>
> On Objectinspector, property editor work just for, if Property name is 
> "DataField" my idea is propertyeditor check property 
> name('datafield')not classname or type "TFieldDataLink" . I mean 
> fieldlist combobox work on OI just if propertyname is "datafield". 
> second or third field name not listing, just string edit, not 
> combobox. this is same on "TDBLookupComboBox".
> Is this bug or I have to use some code for this.
> Thank you.
>

you are missing:

   RegisterPropertyEditor(TypeInfo(string), TComponent, 'DataField', 
TFieldProperty);

see
components\ideintf\dbpropedits.pas




More information about the Lazarus mailing list