On Thu, 27 Sep 2007 23:13:07 +0800 Павел Ишенин <[EMAIL PROTECTED]> 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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel