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.
OCX questions
OCX questions
Dear developers!
I try to create my first sample with OCX ListView (see attached project).
I have a few questions.
1. Is it possible to set focus on ListView (or other OCX) component after
program start and move from one control
to another (oButton to oListView and vice versa) with TAB key?
All my attempts were unsuccessfull. I tried oListView:SetFocus and
TListView:KeyDown event (see source).
2. When I import ActiveX in Xailer (Components menu), resulting .ch file
contains wrong #xtranslate directives instead of #define?
I have to change it to #define manually. I think it is a bug.
3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
where I create OCX object (for example see line 51 in the Form1.prg)?
4. Are there any free tools to inspect all properties, methods and events of
defined OCX and other classes using in this OCX?
Something like Delphi internal Type Library Editor?
5. Maybe you know, Is there any CommCtl32 library guide in the Internet?
Thank you.
Oleg.
Attached files test10.zip (10.6 KB)Â
I try to create my first sample with OCX ListView (see attached project).
I have a few questions.
1. Is it possible to set focus on ListView (or other OCX) component after
program start and move from one control
to another (oButton to oListView and vice versa) with TAB key?
All my attempts were unsuccessfull. I tried oListView:SetFocus and
TListView:KeyDown event (see source).
2. When I import ActiveX in Xailer (Components menu), resulting .ch file
contains wrong #xtranslate directives instead of #define?
I have to change it to #define manually. I think it is a bug.
3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
where I create OCX object (for example see line 51 in the Form1.prg)?
4. Are there any free tools to inspect all properties, methods and events of
defined OCX and other classes using in this OCX?
Something like Delphi internal Type Library Editor?
5. Maybe you know, Is there any CommCtl32 library guide in the Internet?
Thank you.
Oleg.
Attached files test10.zip (10.6 KB)Â
OCX questions
Oleg,
> 1. Is it possible to set focus on ListView (or other OCX) component after
> program start and move from one control
> to another (oButton to oListView and vice versa) with TAB key?
> All my attempts were unsuccessfull. I tried oListView:SetFocus and
> TListView:KeyDown event (see source).
I don't have that OCX in my system, and I cannot test it. Is there any place
from where I can download it?
> 2. When I import ActiveX in Xailer (Components menu), resulting .ch file
> contains wrong #xtranslate directives instead of #define?
> I have to change it to #define manually. I think it is a bug.
Yes, there was a bug, already fixed. Sorry for the inconvenience.
> 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> where I create OCX object (for example see line 51 in the Form1.prg)?
It's working fine here. The program stops just in that line (later it GPFs,
as that OCX is not present in my system). Please, check that all modules has
been compiled with debugger info (rebuild the whole project and test again).
> 4. Are there any free tools to inspect all properties, methods and events
> of
> defined OCX and other classes using in this OCX?
> Something like Delphi internal Type Library Editor?
Well, Xailer creates a class based on the OCX's type library. If you want to
view the type library yourself, you may use the tool "OLE-COM Object Viewer"
that comes with MS platform SDK
> 5. Maybe you know, Is there any CommCtl32 library guide in the Internet?
Search into MSDN.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
> 1. Is it possible to set focus on ListView (or other OCX) component after
> program start and move from one control
> to another (oButton to oListView and vice versa) with TAB key?
> All my attempts were unsuccessfull. I tried oListView:SetFocus and
> TListView:KeyDown event (see source).
I don't have that OCX in my system, and I cannot test it. Is there any place
from where I can download it?
> 2. When I import ActiveX in Xailer (Components menu), resulting .ch file
> contains wrong #xtranslate directives instead of #define?
> I have to change it to #define manually. I think it is a bug.
Yes, there was a bug, already fixed. Sorry for the inconvenience.
> 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> where I create OCX object (for example see line 51 in the Form1.prg)?
It's working fine here. The program stops just in that line (later it GPFs,
as that OCX is not present in my system). Please, check that all modules has
been compiled with debugger info (rebuild the whole project and test again).
> 4. Are there any free tools to inspect all properties, methods and events
> of
> defined OCX and other classes using in this OCX?
> Something like Delphi internal Type Library Editor?
Well, Xailer creates a class based on the OCX's type library. If you want to
view the type library yourself, you may use the tool "OLE-COM Object Viewer"
that comes with MS platform SDK
> 5. Maybe you know, Is there any CommCtl32 library guide in the Internet?
Search into MSDN.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
OCX questions
Oleg,
> 1. Is it possible to set focus on ListView (or other OCX) component after
> program start and move from one control
> to another (oButton to oListView and vice versa) with TAB key?
> All my attempts were unsuccessfull. I tried oListView:SetFocus and
> TListView:KeyDown event (see source).
I don't have that OCX in my system, and I cannot test it. Is there any place
from where I can download it?
> 2. When I import ActiveX in Xailer (Components menu), resulting .ch file
> contains wrong #xtranslate directives instead of #define?
> I have to change it to #define manually. I think it is a bug.
Yes, there was a bug, already fixed. Sorry for the inconvenience.
> 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> where I create OCX object (for example see line 51 in the Form1.prg)?
It's working fine here. The program stops just in that line (later it GPFs,
as that OCX is not present in my system). Please, check that all modules has
been compiled with debugger info (rebuild the whole project and test again).
> 4. Are there any free tools to inspect all properties, methods and events
> of
> defined OCX and other classes using in this OCX?
> Something like Delphi internal Type Library Editor?
Well, Xailer creates a class based on the OCX's type library. If you want to
view the type library yourself, you may use the tool "OLE-COM Object Viewer"
that comes with MS platform SDK
> 5. Maybe you know, Is there any CommCtl32 library guide in the Internet?
Search into MSDN.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
> 1. Is it possible to set focus on ListView (or other OCX) component after
> program start and move from one control
> to another (oButton to oListView and vice versa) with TAB key?
> All my attempts were unsuccessfull. I tried oListView:SetFocus and
> TListView:KeyDown event (see source).
I don't have that OCX in my system, and I cannot test it. Is there any place
from where I can download it?
> 2. When I import ActiveX in Xailer (Components menu), resulting .ch file
> contains wrong #xtranslate directives instead of #define?
> I have to change it to #define manually. I think it is a bug.
Yes, there was a bug, already fixed. Sorry for the inconvenience.
> 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> where I create OCX object (for example see line 51 in the Form1.prg)?
It's working fine here. The program stops just in that line (later it GPFs,
as that OCX is not present in my system). Please, check that all modules has
been compiled with debugger info (rebuild the whole project and test again).
> 4. Are there any free tools to inspect all properties, methods and events
> of
> defined OCX and other classes using in this OCX?
> Something like Delphi internal Type Library Editor?
Well, Xailer creates a class based on the OCX's type library. If you want to
view the type library yourself, you may use the tool "OLE-COM Object Viewer"
that comes with MS platform SDK
> 5. Maybe you know, Is there any CommCtl32 library guide in the Internet?
Search into MSDN.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
OCX questions
Jose,
> > 1. Is it possible to set focus on ListView (or other OCX) component
after
> > program start and move from one control
> > to another (oButton to oListView and vice versa) with TAB key?
> > All my attempts were unsuccessfull. I tried oListView:SetFocus and
> > TListView:KeyDown event (see source).
>
> I don't have that OCX in my system, and I cannot test it. Is there any
place
> from where I can download it?
It seems to me that this ActiveX ships with any standard Windows
installation.
It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is included
comctl32.ocx together with TreeView, ImageList an so on.
It is placed in WindowsSystemcomctl32.ocx on Win98SE,
and in WindowsSystem32comctl32.ocx on WinXP Prof.
> > 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> > where I create OCX object (for example see line 51 in the Form1.prg)?
>
> It's working fine here. The program stops just in that line (later it
GPFs,
> as that OCX is not present in my system). Please, check that all modules
has
> been compiled with debugger info (rebuild the whole project and test
again).
Debug info is included, I rebuild full project, but If I set breakpoint on
line with
:nAlign := alTOP and below
debugger does not stop.
Maybe the reason that I use combobox fixes from XailerUpg.rar that I
download recently.
Please look at it carefully.
Regards, Oleg
> > 1. Is it possible to set focus on ListView (or other OCX) component
after
> > program start and move from one control
> > to another (oButton to oListView and vice versa) with TAB key?
> > All my attempts were unsuccessfull. I tried oListView:SetFocus and
> > TListView:KeyDown event (see source).
>
> I don't have that OCX in my system, and I cannot test it. Is there any
place
> from where I can download it?
It seems to me that this ActiveX ships with any standard Windows
installation.
It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is included
comctl32.ocx together with TreeView, ImageList an so on.
It is placed in WindowsSystemcomctl32.ocx on Win98SE,
and in WindowsSystem32comctl32.ocx on WinXP Prof.
> > 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> > where I create OCX object (for example see line 51 in the Form1.prg)?
>
> It's working fine here. The program stops just in that line (later it
GPFs,
> as that OCX is not present in my system). Please, check that all modules
has
> been compiled with debugger info (rebuild the whole project and test
again).
Debug info is included, I rebuild full project, but If I set breakpoint on
line with
:nAlign := alTOP and below
debugger does not stop.
Maybe the reason that I use combobox fixes from XailerUpg.rar that I
download recently.
Please look at it carefully.
Regards, Oleg
OCX questions
Jose,
> > 1. Is it possible to set focus on ListView (or other OCX) component
after
> > program start and move from one control
> > to another (oButton to oListView and vice versa) with TAB key?
> > All my attempts were unsuccessfull. I tried oListView:SetFocus and
> > TListView:KeyDown event (see source).
>
> I don't have that OCX in my system, and I cannot test it. Is there any
place
> from where I can download it?
It seems to me that this ActiveX ships with any standard Windows
installation.
It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is included
comctl32.ocx together with TreeView, ImageList an so on.
It is placed in WindowsSystemcomctl32.ocx on Win98SE,
and in WindowsSystem32comctl32.ocx on WinXP Prof.
> > 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> > where I create OCX object (for example see line 51 in the Form1.prg)?
>
> It's working fine here. The program stops just in that line (later it
GPFs,
> as that OCX is not present in my system). Please, check that all modules
has
> been compiled with debugger info (rebuild the whole project and test
again).
Debug info is included, I rebuild full project, but If I set breakpoint on
line with
:nAlign := alTOP and below
debugger does not stop.
Maybe the reason that I use combobox fixes from XailerUpg.rar that I
download recently.
Please look at it carefully.
Regards, Oleg
> > 1. Is it possible to set focus on ListView (or other OCX) component
after
> > program start and move from one control
> > to another (oButton to oListView and vice versa) with TAB key?
> > All my attempts were unsuccessfull. I tried oListView:SetFocus and
> > TListView:KeyDown event (see source).
>
> I don't have that OCX in my system, and I cannot test it. Is there any
place
> from where I can download it?
It seems to me that this ActiveX ships with any standard Windows
installation.
It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is included
comctl32.ocx together with TreeView, ImageList an so on.
It is placed in WindowsSystemcomctl32.ocx on Win98SE,
and in WindowsSystem32comctl32.ocx on WinXP Prof.
> > 3. Debugger cannot stop on the breakpoints inside the WITH OBJECT
> > where I create OCX object (for example see line 51 in the Form1.prg)?
>
> It's working fine here. The program stops just in that line (later it
GPFs,
> as that OCX is not present in my system). Please, check that all modules
has
> been compiled with debugger info (rebuild the whole project and test
again).
Debug info is included, I rebuild full project, but If I set breakpoint on
line with
:nAlign := alTOP and below
debugger does not stop.
Maybe the reason that I use combobox fixes from XailerUpg.rar that I
download recently.
Please look at it carefully.
Regards, Oleg
OCX questions
Jose,
I found that compiled test10.exe works on Win98SE with described problems,
but does not work at all on Windows XP Prof SP2 (fails at Listview creation
with GPF
OLEADDRef(0)
TOLEAuto():New(306)
TListview():Create(64)
.... ).
Listview control is registered. I also tried to re-register it, but
test10.exe does not work
in any case.
Regards, Oleg
I found that compiled test10.exe works on Win98SE with described problems,
but does not work at all on Windows XP Prof SP2 (fails at Listview creation
with GPF
OLEADDRef(0)
TOLEAuto():New(306)
TListview():Create(64)
.... ).
Listview control is registered. I also tried to re-register it, but
test10.exe does not work
in any case.
Regards, Oleg
OCX questions
Jose,
I found that compiled test10.exe works on Win98SE with described problems,
but does not work at all on Windows XP Prof SP2 (fails at Listview creation
with GPF
OLEADDRef(0)
TOLEAuto():New(306)
TListview():Create(64)
.... ).
Listview control is registered. I also tried to re-register it, but
test10.exe does not work
in any case.
Regards, Oleg
I found that compiled test10.exe works on Win98SE with described problems,
but does not work at all on Windows XP Prof SP2 (fails at Listview creation
with GPF
OLEADDRef(0)
TOLEAuto():New(306)
TListview():Create(64)
.... ).
Listview control is registered. I also tried to re-register it, but
test10.exe does not work
in any case.
Regards, Oleg
OCX questions
Oleg,
sorry for the delay.
> It seems to me that this ActiveX ships with any standard Windows
> installation.
> It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is
> included
> comctl32.ocx together with TreeView, ImageList an so on.
> It is placed in WindowsSystemcomctl32.ocx on Win98SE,
> and in WindowsSystem32comctl32.ocx on WinXP Prof.
It's not present in my Win XP Home SP2
> Debug info is included, I rebuild full project, but If I set breakpoint on
> line with
> :nAlign := alTOP and below
> debugger does not stop.
> Maybe the reason that I use combobox fixes from XailerUpg.rar that I
> download recently.
> Please look at it carefully.
I've just tested again and it still works fine. I've put a breakpoint at
that line (:nAlign := alTOP) and I've compiled and run the program. Then, it
has stopped exactly at that line. I've pressed F5 to continue running and
I've got a GPF due the absence of the component.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
sorry for the delay.
> It seems to me that this ActiveX ships with any standard Windows
> installation.
> It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is
> included
> comctl32.ocx together with TreeView, ImageList an so on.
> It is placed in WindowsSystemcomctl32.ocx on Win98SE,
> and in WindowsSystem32comctl32.ocx on WinXP Prof.
It's not present in my Win XP Home SP2
> Debug info is included, I rebuild full project, but If I set breakpoint on
> line with
> :nAlign := alTOP and below
> debugger does not stop.
> Maybe the reason that I use combobox fixes from XailerUpg.rar that I
> download recently.
> Please look at it carefully.
I've just tested again and it still works fine. I've put a breakpoint at
that line (:nAlign := alTOP) and I've compiled and run the program. Then, it
has stopped exactly at that line. I've pressed F5 to continue running and
I've got a GPF due the absence of the component.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
OCX questions
Oleg,
sorry for the delay.
> It seems to me that this ActiveX ships with any standard Windows
> installation.
> It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is
> included
> comctl32.ocx together with TreeView, ImageList an so on.
> It is placed in WindowsSystemcomctl32.ocx on Win98SE,
> and in WindowsSystem32comctl32.ocx on WinXP Prof.
It's not present in my Win XP Home SP2
> Debug info is included, I rebuild full project, but If I set breakpoint on
> line with
> :nAlign := alTOP and below
> debugger does not stop.
> Maybe the reason that I use combobox fixes from XailerUpg.rar that I
> download recently.
> Please look at it carefully.
I've just tested again and it still works fine. I've put a breakpoint at
that line (:nAlign := alTOP) and I've compiled and run the program. Then, it
has stopped exactly at that line. I've pressed F5 to continue running and
I've got a GPF due the absence of the component.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
sorry for the delay.
> It seems to me that this ActiveX ships with any standard Windows
> installation.
> It has name 'Microsoft Listview Control, version 5.0 (SP2)' and is
> included
> comctl32.ocx together with TreeView, ImageList an so on.
> It is placed in WindowsSystemcomctl32.ocx on Win98SE,
> and in WindowsSystem32comctl32.ocx on WinXP Prof.
It's not present in my Win XP Home SP2
> Debug info is included, I rebuild full project, but If I set breakpoint on
> line with
> :nAlign := alTOP and below
> debugger does not stop.
> Maybe the reason that I use combobox fixes from XailerUpg.rar that I
> download recently.
> Please look at it carefully.
I've just tested again and it still works fine. I've put a breakpoint at
that line (:nAlign := alTOP) and I've compiled and run the program. Then, it
has stopped exactly at that line. I've pressed F5 to continue running and
I've got a GPF due the absence of the component.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
OCX questions
Oleg,
> I found that compiled test10.exe works on Win98SE with described problems,
> but does not work at all on Windows XP Prof SP2 (fails at Listview
> creation
> with GPF
> OLEADDRef(0)
> TOLEAuto():New(306)
> TListview():Create(64)
> ... ).
>
> Listview control is registered. I also tried to re-register it, but
> test10.exe does not work
> in any case.
Perhaps it has a different CLSID than in w98. Try to generate the class
again from the IDE in XP. Then, post the CLSID here (it appears at the
beginning of the class), to check if it's present in my system.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
> I found that compiled test10.exe works on Win98SE with described problems,
> but does not work at all on Windows XP Prof SP2 (fails at Listview
> creation
> with GPF
> OLEADDRef(0)
> TOLEAuto():New(306)
> TListview():Create(64)
> ... ).
>
> Listview control is registered. I also tried to re-register it, but
> test10.exe does not work
> in any case.
Perhaps it has a different CLSID than in w98. Try to generate the class
again from the IDE in XP. Then, post the CLSID here (it appears at the
beginning of the class), to check if it's present in my system.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
OCX questions
Oleg,
> I found that compiled test10.exe works on Win98SE with described problems,
> but does not work at all on Windows XP Prof SP2 (fails at Listview
> creation
> with GPF
> OLEADDRef(0)
> TOLEAuto():New(306)
> TListview():Create(64)
> ... ).
>
> Listview control is registered. I also tried to re-register it, but
> test10.exe does not work
> in any case.
Perhaps it has a different CLSID than in w98. Try to generate the class
again from the IDE in XP. Then, post the CLSID here (it appears at the
beginning of the class), to check if it's present in my system.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
> I found that compiled test10.exe works on Win98SE with described problems,
> but does not work at all on Windows XP Prof SP2 (fails at Listview
> creation
> with GPF
> OLEADDRef(0)
> TOLEAuto():New(306)
> TListview():Create(64)
> ... ).
>
> Listview control is registered. I also tried to re-register it, but
> test10.exe does not work
> in any case.
Perhaps it has a different CLSID than in w98. Try to generate the class
again from the IDE in XP. Then, post the CLSID here (it appears at the
beginning of the class), to check if it's present in my system.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
OCX questions
Jose,
If so many problems with Listview, let's forget about it (I also will have
WinXP till Monday)
The same problem exists with Microsoft FlexGrid.
I cannot move between FlexGrid and button with TAB key,
and cannot move inside FlexGrid with arrows keys.
See my attached sample.
You can download FlexGrid ActiveX (from my Win98 system)
from www.cluster.samara.ru/flexgrid.zip
Regards, Oleg
Attached files test11.zip (6.4 KB)Â
If so many problems with Listview, let's forget about it (I also will have
WinXP till Monday)

The same problem exists with Microsoft FlexGrid.
I cannot move between FlexGrid and button with TAB key,
and cannot move inside FlexGrid with arrows keys.
See my attached sample.
You can download FlexGrid ActiveX (from my Win98 system)
from www.cluster.samara.ru/flexgrid.zip
Regards, Oleg
Attached files test11.zip (6.4 KB)Â
OCX questions
Jose,
If so many problems with Listview, let's forget about it (I also will have
WinXP till Monday)
The same problem exists with Microsoft FlexGrid.
I cannot move between FlexGrid and button with TAB key,
and cannot move inside FlexGrid with arrows keys.
See my attached sample.
You can download FlexGrid ActiveX (from my Win98 system)
from www.cluster.samara.ru/flexgrid.zip
Regards, Oleg
Attached files test11.zip (6.4 KB)Â
If so many problems with Listview, let's forget about it (I also will have
WinXP till Monday)

The same problem exists with Microsoft FlexGrid.
I cannot move between FlexGrid and button with TAB key,
and cannot move inside FlexGrid with arrows keys.
See my attached sample.
You can download FlexGrid ActiveX (from my Win98 system)
from www.cluster.samara.ru/flexgrid.zip
Regards, Oleg
Attached files test11.zip (6.4 KB)Â
OCX questions
Any answer?
OCX questions
Any answer?