Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

Strage behaviour of DefaultPanel/DefaultCtrl on localized panel

$
0
0

I am using the localization utility for a multilanguage application I am developing and faced a strange problem.

I can correctly display localized panels but if I happen to call DefaultPanel on the localized panel, all text messages return to original (untranslated); the same happens if I call DefaultCtrl on a text message. Control labels are not affected by this problem.

The problem happens both if I use LoadLocalizedPanel and if I call LoadPanel + LocalizePanel.

 

This behaviour is particularly annoying as I sometimes call DefaultPanel to revert all controls in a panel to their default value. Having observed this fact, I can only use as a workaround a loop on all panel controls to default all but text messages (haven't tested on rings on till now).

 

Tested on CVI2009SP1 and 2012SP1, on a Win7 machine. This happens both in the IDE and in the compiled executable.

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>