[Lazarus] TCaption question

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jul 15 15:37:02 CEST 2014


On Tue, 15 Jul 2014 15:29:56 +0200
Vojtěch Čihák <vojtech.cihak at atlas.cz> wrote:

> Hi,
>  
> some components (like TLabel) have ellipsis button [...] in Object Inspector that allows multi-line editing while other components don't (TButton).
> How OI distinguishes it, since both have the same declaration (TControl.Caption: TCaption)?
> What should I do when want multi-line string composite editor for my component?

For example:

uses PropEdits;

interface

procedure Register;

implementation

procedure Register;
begin
  RegisterPropertyEditor(TypeInfo(TTranslateString), TYourComponent,
  'YourStringProperty', TStringMultilinePropertyEditor); 
end;

Mattias




More information about the Lazarus mailing list