On Thu, Apr 15, 2010 at 11:11 AM, Graeme Geldenhuys
<[email protected]> wrote:
> On 15 April 2010 15:31, Marc Weustink <[email protected]> wrote:
>> The lazarus/delphi forms designer uses RTTI for created components. RTTI is
>> only created for published members of a class so for that they need to be
>> published.
>
> That's exactly why fpGUI UI Designer doesn't use RTTI. Down side is
> you need to tell the UI Designer what should be available in the
> Object Inspector. Up side is that the controls on the forms or
> properties of a component can have any visibility, and the UI Designer
> will still work. And as a "catch all" where you need to set a
> property, but it isn't in the Object Inspector, there is a 'Unknown
> Lines' memo in the Object Inspector that will store whatever you typed
> in there exactly as is, in the generated code. And it also does the
> reverse, when loading a form or component properties it doesn't know
> about, it adds those to the Unknown Lines memo.
>

When visibility is really a problem, you can use TComponent.DefineProperties...

Best regards,
Flávio

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to