問題タブ [structured-text]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
structured-text - 実行時に視覚化コントロールの幅を取得する方法
HMI でスクロール テキストを作成しようとしています。コントロールの幅に対して(テキストの長さにピクセル/文字/フォントサイズを掛けたもの)をチェックする式を生成しました。テキストの長さがコントロールの幅よりも大きい場合、テキストをスクロールします。私のコードは次のとおりです
bScroll := ((wlen(g_ScrollText.wsTxt)*g_ScrollText.swFontSz]) > visCmd.Width);
実行時に視覚化コマンド ボタンから .Width パラメータを取得するにはどうすればよいですか?