In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
TOptionList
TOptionList
Hi,
I Have one form that use the TOptionList and work when compiled in 2.0.18,
now I try with 2.5.00 and give an error in property nImage.
See the attached file for further details .
-
Regards.
Paulo Félix
Analista / Programador
SHI, Lda.
Rua Garcia de Orta, 48 - 3.º C
Damaia
2720-253 Amadora
Portugal
Tel.: (351)214 768 098
--
Attached files OL.zip (16.2 KB)Â
- ignacio
- Site Admin
- Mensajes: 9441
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
TOptionList
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,
Attached files OL_2_5_00-1-0-0-0.zip (2.7 KB)Â
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,
Attached files OL_2_5_00-1-0-0-0.zip (2.7 KB)Â
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
TOptionList
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
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