LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Pb of text string ctrl scale on resize

Hi everybody,
 
I notice a problem of scale on resize a text string control (labWindows v7.1). When I make the panel larger, (with attribute Scale contents on resize) the text string control enlarge normaly but unfortunatly when I reduce the panel the heigth of the control don't decrease enought (see attached file).
 
The height attribute doesn't exit for this control... Is anyone has a solution to solve this problem ?
 
I found a solution with using a Microsoft string control (ActiveX Microsoft Forms 2.0) that don't have the problem of resize. But when I distribute ma build, I have the following message : "ActiveX control not registered on this computer". So I register manually the ActiveX control (fm20.dll) and after I have the following message : "ActiveX control error".
I'm lost... What's wrong ? I need help.
 
Regards,
 
Jean-Noel Pomies
0 Kudos
Message 1 of 3
(3,221 Views)
Hello, Jean-Noel

Yes, there was a bug in CVI 6.0 through 8.0, which prevented string controls from being downsized when their font size was reduced, as a result of scaling. The fix for this will be included in CVI 8.0.1.

I'm not really sure why you're getting the ActiveX error, but my guess is that it wasn't installed properly. It might not be sufficient to simply distribute the DLL, since that DLL might depend on other components. The only safe way would be to include an actual installer (an .msm, or .msi), if you have one.

Having said that, you have a much simpler alternative to the ActiveX control. The problem with the CVI string control does not exist in the classic-style version of the control. You can simply use this one instead (you can find the Classic-Style controls at the bottom of the control palette).

Luis
NI
Message 2 of 3
(3,209 Views)

Hi Luis,

Thank you for your help. I use the old style text string and It's work very well.

Regards

Jean-Noel Pomies

 

0 Kudos
Message 3 of 3
(3,186 Views)