Thanks Ignacio !!!
Regards.
"Ignacio Ortiz de Zúñiga" wrote in message
news:4f2927c3$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Hello,
As I can see in your code, you are assigning the
'OptionList1Click' method twice to different objects.
First on TOptionItem on line 49:
::oItems_PriGru:OnClick := "OptionList1Click"
And also on the TOptionList OnClick event.
For that reason you are receiving two events when ever a
click is performed, the first one with oSender as
TOptionItem object, and the second one as a TptionList.
Since the property nImage is only available on TOptionItems,
a RTE arised when oSender was a TOptionList.
The easiest way to solve this problem is simply deleting the
TOptionList:OnClick event. That's all.
BTW, this may function on previous versions of Xailer
because the Windows API does not provide a Click message for
any control but we decided to include it on Xailer control
some time ago.
I include with this message your project corrected.
Regards,
--
Ignacio Ortiz de ZíƒÂºíƒÂ±iga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info