Hi All,
I have more than one activeX/CODEJOCK control on my GUI Screen.
I just want to find name and type of each activeX/CODEJOCK control.
I have used Window handle to find its child widgets. But It does not provide me exact type of the activeX/CODEJOCK control.
Please suggest is there any way to find type of activeX/CODEJOCK.
Thanks
Vishwdeep
Hey,
If you run through the widget tree ... you can test if the widget is a control frame ...
IF phWidget:TYPE = "CONTROL-FRAME" THEN ...
if you have the handle to the control frame you can get the handle of the control that resides on the control frame
For example :
assign hCfComHdl = TreeViewControl:com-handle
hCOLLECTION = hCfComHdl:controls
hTREEVIEWHANDLE = hCOLLECTION:item(1).
Then you can get the name --> hTREEVIEWHANDLE:name
kind regards
Gerd
Thanks Gerd,
But One thing Ijust want to confirm.
You have written ,
--> Then you can get the name --> hTREEVIEWHANDLE:name
My Question is -
Does name of any activex control never change ?
i.e. Does hTREEVIEWHANDLE:name will give me alswys same value.
Regards
Vishwdeep
I'm not sure, but I think it doesn't change ...
Gerd
vishwdeep.pandey schrieb:
Does name of any activex control never change ?
i.e. Does hTREEVIEWHANDLE:name will give me alswys same value.
That all depends on you! The name of the Active X Control is usually a setable property (like at MS TreeView).
Why do you need to rely on the name of the Control instance? You might want to rethink the design...
Attached is a screenshot of the TreeView Active X Control property sheet in the AppBuilder.
I changed the name of the Control of a German word.Your code should not rely on me not doing this.
for this sort of thing you should use the tag property to store the information that you need (i.e tag = treeview1)
Thank Mike,
I am working on a tool(created in Progress) which calles progress screen and Identify its widget and perform operations on that i.e.
when it find buttonn it performs Click opertaion.
For Progress defined widget Progress give Proper type of widget i.e for
for Button "hWdgethandle:type" (assuming hWidgetHandle is widget handle gives Button.
But I stuck at one place when OCX come into picture.
Progress just Provide me "CONTROL-FRAME".
So, My Question is ,
Is there any attribute Provided by OCX through which we can identify, the exact type ie tabstrip, treeview etc.
Thanks
Vishwdeep