Board index » cppbuilder » BDS2006: TReader and OnSetName-Event

BDS2006: TReader and OnSetName-Event


2008-03-25 08:20:30 AM
cppbuilder22
Hello again,
suppose I have a string with the RTTI of an TButton:
object btpTEST_RTTI: TButton
Left = 5
Top = 310
Width = 75
Height = 25
Caption = 'TEST RTTI'
TabOrder = 2
OnClick=cm_TEST_RTTIClick
end
I'm reading that RTTI via an TReader with assigned OnSetName-Event,
but that event is never triggered. I tried additionally:
object btpTEST_RTTI: TButton
Name='abcd'
Left = 5
...
object TButton
Name='abcd'
Left = 5
No success. Any hints?
Thanks and greetings
Udo
 
 

Re:BDS2006: TReader and OnSetName-Event

"Udo Weik" < XXXX@XXXXX.COM >wrote in message
Quote
I'm reading that RTTI via an TReader with assigned
OnSetName-Event, but that event is never triggered.
The OnSetName event is only triggered when the ffInherited flag is not
present during reading. If you are not getting that event, then that flag
has to be present in the DFM's header.
Gambit
 

Re:BDS2006: TReader and OnSetName-Event

Hello Remy,
Quote
>I'm reading that RTTI via an TReader with assigned
>OnSetName-Event, but that event is never triggered.

The OnSetName event is only triggered when the ffInherited flag is not
present during reading. If you are not getting that event, then that flag
has to be present in the DFM's header.
many thanks for your answer. Unfortunately I can't use that event at all,
because TReader->ReadRootComponent doesn't call it.
Thanks and greetings
Udo
 

{smallsort}

Re:BDS2006: TReader and OnSetName-Event

"Udo Weik" < XXXX@XXXXX.COM >wrote in message
Quote
many thanks for your answer. Unfortunately I can't use that
event at all, because TReader->ReadRootComponent doesn't
call it.
The OnSetName event is only used by TReaer.ReadComponent().
Gambit