03-05-2008 12:12 AM
03-05-2008 12:41 AM - edited 03-05-2008 12:42 AM

03-05-2008 01:27 AM
Thanks, Ton. ![]()
Do you know the reason why the explicit Pane property node throws error saying that "Object reference is invalid", if it is referenced by a Class Specifier Constant?
Earlier, in LV 7.1, the explicit property node for a VI FP Origin used to work without being referenced with a Class Specifier Constant or a Open VI reference. ![]()
I dont understand why it has been changed in LV 8.5 for both Panel & Pane explicit nodes. ![]()
03-05-2008 01:36 AM
03-05-2008 04:46 AM
This wouldn't have worked in older versions either. My guess would be that this was done to save the programmer from making mistakes. Using the current application and current VI as default is reasonable, but if you do this for too many classes you might get bugs if people forget to wire a reference into the property node.
The error itself should be obvious in this case - the constant reference is not a reference to the current VI's panel, but a generic reference to the Panel class.
03-18-2008 06:34 AM
If the FP Window Bounds Property is kept in its old place intact, then why has the FP Window Origin Property alone been moved into the Pane class? ![]()
If FP Window Bounds is NOT based on the Pane class, what is the reason behind the FP Window Origin being based on the Pane class? ![]()
Why I m asking this again is because, the origin for a FP is going to be only one irrespective of the no. of panes you re going to have in your VI, like the FP WIndow Bounds. ![]()
May someone explain me more of this, if my understanding on the subject is incorrect... ![]()
03-18-2008 08:41 AM - edited 03-18-2008 08:41 AM
03-18-2008 03:22 PM
It's not the window origin, and in fact it never was. It used to be the panel origin, where the panel was the part of the window you could place controls in. When panes were introduced it became the pane origin - each pane can have a completely separate origin.
parthabe wrote:
If the FP Window Bounds Property is kept in its old place intact, then why has the FP Window Origin Property alone been moved into the Pane class?
![]()
03-19-2008 12:04 AM
tst,
I think it was the FP Window origin in LV 7.x. ![]()
See the attached pic. Correct/explain me if I my understanding is wrong.
03-19-2008 06:10 AM