Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-07

TCaption question

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vojtěch Čihák

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? ?
Thanks.?
?

Reply by email

Mattias Gaertner
to Vojtěch Čihák
Show quoted text 5 lines
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

Reply by email

Vojtěch Čihák
to Mattias Gaertner

Thanks.
?
Now I see, the package has to have IDEIntf in dependencies. ______________________________________________________________

Od: Mattias Gaertner Komu: Datum: 15.07.2014 15:38 P?edm?t: Re: [Lazarus] TCaption question

For example:

uses PropEdits;
interface
procedure Register;
implementation
procedure Register;
begin
 ?RegisterPropertyEditor(TypeInfo(TTranslateString), TYourComponent,
 ?'YourStringProperty', TStringMultilinePropertyEditor);
end;

Mattias

Reply by email