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.?
?
Mailing lists / lazarus / 2014-07
TCaption question
3 messages · 2 people ·
- VVojtěch Čihák 2
- MMattias Gaertner 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
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
