LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

VAL_SIZE_TO_IMAGE does not function as expected

Hello Naity,

 

thank you for the effort.

 

The test steps you've done do correlate with the setting up my development environment:

- first I had CVI 8.5.1 on a Windows XP machine

- then due to the change of the OS to Win 7 I had to install CVI 2010, because

  the CVI 8.5.1 could not be installed (according to the NI: CVI 8.5 is no more supported with Win 7)

 

But you write you will go on with the test on Win7 machine with CVI 8.5.

How you want to do it? Maybe it would be the solution I am looking for:

If I could install CVI 8.5 on my Win7 machine, it would be fine with me.

 

Thanks and regards.

0 Kudos
Message 11 of 15
(1,020 Views)

No more support does not mean it can not be installed animore. Just that we won't support any unexpected behaviour on CVI 8.5 under Windows 7. I just wanted to try to see if the behaviour would be the expected one. According to my test, it is not: I just tried and the buton was resized. I tried on Win 7 x64. If you have a spare Win 7 x86 computer and want to run a test, feel free. in that case I am interested in the result (I dont't have any x86 comp available for format today). 

 

I am currently doing some further testing under XP to try to narrow down the cause of the problem. 

 

Best regards 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 12 of 15
(1,018 Views)

Hi,

 

I finally got an answer from R&D.

 

The current behaviour is the expected one. Scale Content on Resize is suppose to have the priority over the size to image. This was an unexpected behaviour of CVI 8.5.1 under windows XP (it seem to fit with my tests as I could not reproduce the behaviour with CVI 8.5.1 under Windows 7).

 

What I did not try and would not have time to try this week, is to compile a released application with 8.5.1 under XP and the to use this application in Windows 7 with the 8.5.1 run time engine.

 

So, the official statement is that the observed behaviour in 2010 is the expected one.

 

Best regards 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 13 of 15
(1,003 Views)

Hello Naity,

 

thank you once again.

 

Then I have to find the workaround for my problem somehow...

...although in my opiniion it is a bug: VAL_SIZE_TO_IMAGE does not make sense now.

I don't know if the NI is intrested in the opnions of the customers. I hope it will be reconsidered someday.

 

Best regards

 

 

0 Kudos
Message 14 of 15
(1,000 Views)

Hi inomed,

 

Customer's opinion is always interesting. Yours as been forwarded.

 

After a review of the code, I can give you some more informations about the "low level" behaviour of the code. The SCALE_CONTENTS_ON_RESIZE property is built in a way that everything is resized on panel resize. This includes both image and control. this is why, when you scale on control and load a new image, the new image is automaticaly resized. This is also why, when you load a new image with size to image, the new image gets its original size back. 

 

best regards 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 15 of 15
(983 Views)