[fpc-devel] extending platform flag request

2007-09-27 Thread Павел Ишенин
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

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Marc Weustink
Graeme Geldenhuys wrote: On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: TMenu = class(...) published property Detachable: Boolean read ... write ... ; platform carbon qt; { or it can be platform 'carbon,qt' or another easier way } end; So using this example: Detachable property info

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Michael Van Canneyt
On Fri, 28 Sep 2007, Marc Weustink wrote: > Graeme Geldenhuys wrote: > > On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: > > > TMenu = class(...) > > > published > > > property Detachable: Boolean read ... write ... ; platform carbon qt; > > > { or it can be platform 'carbon,qt' or anot

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Vincent Snijders
Michael Van Canneyt schreef: On Fri, 28 Sep 2007, Marc Weustink wrote: Graeme Geldenhuys wrote: On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: TMenu = class(...) published property Detachable: Boolean read ... write ... ; platform carbon qt; { or it can be platform 'carbon,qt' or a

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Marc Weustink
Michael Van Canneyt wrote: On Fri, 28 Sep 2007, Marc Weustink wrote: Graeme Geldenhuys wrote: On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: TMenu = class(...) published property Detachable: Boolean read ... write ... ; platform carbon qt; { or it can be platform 'carbon,qt' or ano

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Marco van de Voort
> On Fri, 28 Sep 2007, Marc Weustink wrote: > > No the property will always exist and always been written. Only an > > indication > > to the user can be shown that this is a property which might not work on all > > platforms > > IIRC, that's what the platform directive was meant for. > > Only to

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Michael Van Canneyt
On Fri, 28 Sep 2007, Marco van de Voort wrote: > > On Fri, 28 Sep 2007, Marc Weustink wrote: > > > No the property will always exist and always been written. Only an > > > indication > > > to the user can be shown that this is a property which might not work on > > > all > > > platforms > > >

Re: [fpc-devel] extending platform flag request

2007-09-27 Thread Michael Van Canneyt
On Thu, 27 Sep 2007, Павел Ишенин 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 prope

Re: [fpc-devel] extending platform flag request

2007-09-27 Thread Павел Ишенин
Michael Van Canneyt wrote: I think it's better to implement a string message dispatcher for this instead of adding RTTI (which is already bulky as it is). Do not forget that the widget set is very lazarus specific, and has nothing to do with RTTI or even the OS/CPU platform that the compiler kn

Re: [fpc-devel] extending platform flag request

2007-09-27 Thread Tomas Hajny
�авоН ��онин wrote: > Michael Van Canneyt wrote: >> I think it's better to implement a string message dispatcher for this >> instead of adding RTTI (which is already bulky as it is). Do not forget >> that the widget set is very lazarus specific, and has nothing to do with >> RTTI or even

Re: [fpc-devel] extending platform flag request

2007-09-27 Thread Sergei Gorelkin
Tomas Hajny wrote: �авоН ��онин wrote: Michael Van Canneyt wrote: I think it's better to implement a string message dispatcher for this instead of adding RTTI (which is already bulky as it is). Do not forget that the widget set is very lazarus specific, and has nothing to do with RTT

Re: [fpc-devel] extending platform flag request

2007-09-27 Thread Marc Weustink
Some comments inline, imo, no need to comment on separate mails. Sergei Gorelkin wrote: Tomas Hajny wrote: �авоН ��онин wrote: Michael Van Canneyt wrote: I think it's better to implement a string message dispatcher for this instead of adding RTTI (which is already bulky as it is).

Re: [fpc-devel] extending platform flag request

2007-09-27 Thread Vinzent Höfler
Marc Weustink wrote: The informativeness of 'platform' hints could be improved by including a comment that is adjacent to the keyword, if one exists, e.g: property SomeProp; platform; // qt and carbon only Then hint will then be: property 'SomeProp' is platform-specific (qt and carbon only).

Re: [fpc-devel] extending platform flag request

2007-09-27 Thread Graeme Geldenhuys
On 27/09/2007, Павел Ишенин <[EMAIL PROTECTED]> wrote: > > TMenu = class(...) > published > property Detachable: Boolean read ... write ... ; platform carbon qt; > { or it can be platform 'carbon,qt' or another easier way } > end; So using this example: Detachable property information will be w

Re: [fpc-devel] extending platform flag request

2007-09-28 Thread Mattias Gaertner
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 fou