> but it does not seem to consistently
> return titles associated with the UserObject.
A single VEE "window" is actually 6 different component Windows windows. I never did come up with a predictable way to find the displayed title as different objects create these windows in a different order (although it can be done - it's just a hassle).
Also, the Window Text (as defined by Windows) is not where the title text is held. The actual title text is stashed away in a VEE structure pointed to by the Window Extra Bytes. As such, any method of finding this text would not necessarily be portable between VEE versions.
If you know the location of the user object window, you could probably use WindowFromPoint to get the handle though.
> Is there any way to access or even
> use this ObjectIndex property?
Not sure, but probably not without a lot of reverse-engineering. The aforementioned VEE structure seemed to be one member of a list of VEE objects, and should probably contain this index in it, or maybe it works something like object_info_ptr = head + object_index. It seems reasonable to expect that having found this structure you should be able to get a Windows window handle associated with it (most likely it's contained in the structure too).
-SHAWN-
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
> return titles associated with the UserObject.
A single VEE "window" is actually 6 different component Windows windows. I never did come up with a predictable way to find the displayed title as different objects create these windows in a different order (although it can be done - it's just a hassle).
Also, the Window Text (as defined by Windows) is not where the title text is held. The actual title text is stashed away in a VEE structure pointed to by the Window Extra Bytes. As such, any method of finding this text would not necessarily be portable between VEE versions.
If you know the location of the user object window, you could probably use WindowFromPoint to get the handle though.
> Is there any way to access or even
> use this ObjectIndex property?
Not sure, but probably not without a lot of reverse-engineering. The aforementioned VEE structure seemed to be one member of a list of VEE objects, and should probably contain this index in it, or maybe it works something like object_info_ptr = head + object_index. It seems reasonable to expect that having found this structure you should be able to get a Windows window handle associated with it (most likely it's contained in the structure too).
-SHAWN-
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Since the Print control input to the UserObject allows no formatting whatsoever, Is there a way to modify the Printscreen.vee example to allow printing of a single UserObject panel embedded as part of the Main panel (rather than the entire VEE window?)
i.e. is there a way to get a handle to a UserObject panel - mainly for printing purposes?
I have modified the VeeWindowEnumerator example to return window titles by using the User.GetWindowTextA() function, but it does not seem to consistently return titles associated with the UserObject. It also seems to return varying results depending on which objects have focus last.
Related to this, under Properties->Design, there is Declared Name, Scope, and the unique identifier: "ObjectIndex".
Is there any way to access or even use this ObjectIndex property?
If not, why does it even appear?
Best regards,
Preston Young
Photodigm Inc.
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".