On Tue, 15 Jul 2014 15:29:56 +0200 Vojtěch Čihák <[email protected]> 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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
