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.

ActiveX problem

Xailer professional forum in English
Responder
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Hi!
Trying to use the FileView Control from LogicNP Software I am having a problem with this code:
METHOD FormInitialize( oSender ) CLASS TForm1
WITH OBJECT ::oFileView := TFileView():New( ::oBevel2 )
:nAlign := alCLIENT
:OnItemClick := "OnFileItemClick"
:Create()
END
RETURN Nil
METHOD OnFileItemClick( oSender, oItem, x, y ) CLASS TForm1
RETURN Nil
You will find a debugger screenshot attached that shows the values of oSender, oItem, x and y when OnFileItemClick is fired.
oItem should be an object but it is of type 'P'. What does that mean?
Best regards, Timm.

Attached files
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

ActiveX problem

Mensaje por jfgimenez »

Timm,
> Trying to use the FileView Control from LogicNP Software I
> am having a problem with this code:
>
> METHOD FormInitialize( oSender ) CLASS TForm1
>
> WITH OBJECT ::oFileView := TFileView():New( ::oBevel2 )
> :nAlign := alCLIENT
> :OnItemClick := "OnFileItemClick"
> :Create()
> END
>
> RETURN Nil
>
> METHOD OnFileItemClick( oSender, oItem, x, y ) CLASS TForm1
>
> RETURN Nil
>
> You will find a debugger screenshot attached that shows the
> values of oSender, oItem, x and y when OnFileItemClick is
> fired.
> oItem should be an object but it is of type 'P'. What does
> that mean?
Did it work for Xailer 3.x? If so, please, could you send me the OCX and
a very simple sample in order to review it?
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Jose,
it works neither with Xailer 3.1 nor with Xailer 4.
You will find a sample attached.
Many thanks for your support!
Best regards, Timm.

Attached files FileViewSample.zip (251.6 KB)Â
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Hi Jose,
did you found something?
Best regards, Timm.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

ActiveX problem

Mensaje por jfgimenez »

Timm,
> did you found something?
No. Please, send me the OCX and a very small sample in order to check it.
BTW, if you sent it before, it's possible that it were stopped by
Google, since our mail server is hosted there and it doesn't allow
executables. Please, use Dropbox or any other service alike and send my
the URL.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Jose,
you will find the sample in my last reply in this topic.
Are you not able to open it?
Best regards, Timm.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

ActiveX problem

Mensaje por jfgimenez »

Timm,
> you will find the sample in my last reply in this topic.
> Are you not able to open it?
Sorry, I didn't see it. That message only appears from web forum, not
from nntp.
I'll review it this afternoon.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Jose,
alright, many thanks in advance!
Best regards, Timm.
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Hi Jose,
do you have any news?
Best regards, Timm.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

ActiveX problem

Mensaje por jfgimenez »

Timm,
sorry for the delay.
Please, test again by adding this module to your project:
https://www.dropbox.com/s/c9c6xim24wtqc ... o.rar?dl=0
It'll be added to the next Xailer release.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Jose,
works, many thanks!
Starting from the IDE I always get this error message in the debugger window (but the program works):
#1: FTH: (3280): *** Fault tolerant heap shim applied to current process. This is usually due to previous crashes. ***
Best regards, Timm.
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Hi Jose!
With your new ocx.o I get random GPFs:
#1: GPF (Code = c0000005):
Access violation
RUNFORM (0)
TAPPLICATION:RUN (286)
MAIN (15)
Without adding the new ocx.o it works.
You will find a sample here:
https://www.dropbox.com/s/njp2j0o4wm1uy ... Sample.zip ?dl=0
Best regards, Timm.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

ActiveX problem

Mensaje por jfgimenez »

Timm,
> With your new ocx.o I get random GPFs:
>
> #1: GPF (Code = c0000005):
> Access violation
>
> RUNFORM (0)
> TAPPLICATION:RUN (286)
> MAIN (15)
>
> Without adding the new ocx.o it works.
> You will find a sample here:
> https://www.dropbox.com/s/njp2j0o4wm1uy ... Sample.zip ?dl=0
Please, test again by using this module:
https://www.dropbox.com/s/4j9fa1m9f8vwl9h/Ocx2.rar?dl=0
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

ActiveX problem

Mensaje por Timm »

Jose,
great, it works! Many thanks!
Best regards, Timm.
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Re: ActiveX problem

Mensaje por Timm »

Hi Jose,

setting the focus from another control to the ActiveX control does not work. Neither with the Tab key nor with :SetFocus().
Do you have an idea?

Best regards, Timm.
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Re: ActiveX problem

Mensaje por Timm »

Hi!

Attached you will find a description of a method I can use with the FileView ActiveX control.
I don´t know how to pass an image to that method.
Can someone perhaps give me a hint?

Best regards, Timm.
Adjuntos
FileView.jpg
FileView.jpg (192.88 KiB) Visto 7658 veces
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

Re: ActiveX problem

Mensaje por Timm »

Hi!

Did you already found time to take a look at this?

Best regards, Timm.
Responder