[fpc-devel] extending platform flag request
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Sep 28 11:38:09 CEST 2007
On Thu, 27 Sep 2007 23:13:07 +0800
Павел Ишенин <webpirat at mail.ru> wrote:
> Hello, FPC developers' list
>
> I had discussion with Marc about how to mark some properties as
> widgetset specific (and show them in object inspector as specific for
> widgetset 'xxx'). As result of discussion we found easy solution -
> mark that properties with platform flag, but platform flag should be
> extended to support list of platforms.
>
> Examples:
>
> TMenu = class(...)
> published
> property Detachable: Boolean read ... write ... ; platform carbon
> qt; { or it can be platform 'carbon,qt' or another easier way }
> end;
>
> As result of such declaration RTTI for TMenu will have platform list
> array with values 'carbon' and 'qt'. If there was no array of
> platforms in declaration, then only platform flag will be set in
> RTTI with empty array of platform list.
>
> What fpc developers think? Is it hard to implement?
Note:
You can write a property editor for the property. A property editor can
hide a property in the OI or give hints. Or the TPropertyEditor can
be extended with a hook, so that the IDE can ask the widgetset, if a
property should be shown.
Mattias
More information about the fpc-devel
mailing list