Yet another 8.2 bug: Error 1131 in LV 8.2 which wasn't there in LV 7.1

Yet another 8.2 bug: Error 1131 in LV 8.2 which wasn't there in LV 7.1

Post by Jaege » Wed, 20 Sep 2006 08:10:16


This bug makes LV 8.2 not backwards compatible (for us at least):
 
It appears that - in certain circumstances - the "Digital Display.Text Colors:BG Color" property of an enum control gets changed from read/write to read only when opening a 7.1.1 VI in 8.2.
 
The attached VI, which was saved in 7.1.1, runs without error in 7.1.1 but returns an error in 8.2 (Error 1131: "You cannot use this property with this system control.").
 
The enum on the front panel was created as follows:

- In LV 7.1.1, drop a "Dialog Ring" control and a modern/3D Enum control on the front panel

- Customize the ring control (open the control editor for it)

- Open the parts window (Window - Show Parts Window on the menu).  This automatically switches to customize mode.

- In the parts window, select the "Ring Background" part.

- Close the parts window

- Hit Shift-Down a few times to move the background out from under the rest of the parts

- Right click on the background and select "Copy to Clipboard"

- Close the control editor - don't save or replace the ring

- Customize the Enum control (open the control editor for it)

- Open the parts window and select the "Frame" part

- Close the parts window

- Hit Shift-Down a few times

- Right click on the frame and select "Import at Same Size"

- Select the frame again, and hit Shift-Up to put it back in place

- Use the colouring tool to change the colour of the "Ring Text" part to be transparent, so that our new frame shows through

- Close the control editor - don't save, but do replace the enum

All of this was done to create what looks like a "Dialog Enum" in LV 7.1.1 since the "System Enum" wasn't added until LV 8.
This is rather infuriating.  We use this property (Digital display text background colour) to change the overall background colour of an enum like this (we resize the digital display to fit under the whole control), since the "ring text" part has to carry over the drop-down arrow image in order for mouse clicks to be caught here, and therefore just changing the "ring text" background colour from transparent will hide the arrow.
The really annoying thing is that there is no reason for this property to be read only - it is not a "system control" as the error description from the general error handler states - it's simply a customized 3D control.  The other crazy thing is that if I recreate the enum from scratch, using the identical procedure, in LV 8.2, the error does not occur - apparently the translation done when opening a LV 7.1.1 VI in LV 8.2 is not correct.
Trying hard to see the benefits of upgrading ...
Jaegen


EnumPropBug.vi:
http://www.yqcomputer.com/
 
 
 

Yet another 8.2 bug: Error 1131 in LV 8.2 which wasn't there in LV 7.1

Post by JoeLabVie » Fri, 30 Nov 2007 09:40:05

I just saw that in LV8.2 using a custom numeric control created in LV8.2 :(
-sigh-
I thought I was going insane, since just using a regular numeric control works fine..
-sigh-
Thank Jaegen for posting this thread... :)
<img src=" http://www.yqcomputer.com/ "> Message Edited by JoeLabView on 11-28-2007 07:15 PM


error1131.PNG:
http://www.yqcomputer.com/

 
 
 

Yet another 8.2 bug: Error 1131 in LV 8.2 which wasn't there in LV 7.1

Post by Ravens Fa » Fri, 30 Nov 2007 12:40:05

An idea for how to work around this.
 
1.  Open the VI in 7.1.1 and replace the customized enum with a standard enum.  Get rid of the property nodes where the colors are set (since it sounds like you don't need this functionality in 8.2 since you have the system enum available.  This seems to maintain the item list in the enum so it doesn't have to be recreated.
2.  Open the VI in 8.2.  Replace the standard enum with the system enum.  Which seems like it also would maintain the list.
 
It seems like doing this gives you the system enum you want (but wasn't available in 7.1.1) and lets you maintain the item list without having to recreat the entire control from scratch.
 
 
 

Yet another 8.2 bug: Error 1131 in LV 8.2 which wasn't there in LV 7.1

Post by JoeLabVie » Fri, 30 Nov 2007 22:10:06

Thanks Ravens,
Actually, here is an interesting twist to the info..  I discovered that the custom control (template) was actually created in LV8.5, using classic controls.  Then saved as LV8.2.
My workaround was simple.  Replaced it with "Modern Numeric Controls".  :)