<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>23 Jul 2018 11:55:11 Z</lastBuildDate><pubDate>22 Jul 2018 15:59:00 Z</pubDate><description>Hi,&#13;
&#13;
I need the textwidth of a static control at runtime.&#13;
The text of the static control can be modified by the user.&#13;
&#13;
I tried:&#13;
&#13;
STC_Ansprechpartner..Width=iTextWidth(STC_Ansprechpartner)&#13;
&#13;
but the result is not right ..</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control/read.awp</link><title>[WD16] Width of a static control</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Sebastian Arnold</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control-66316/read.awp</comments><pubDate>23 Jul 2018 11:55:11 Z</pubDate><description>Michael,&#13;
&#13;
it works for me (WinDev 21). Maybe you should try this:&#13;
&#13;
[code:wl]&#13;
TextWidth(STC_Ansprechpartner,STC_Ansprechpart…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control-66316/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control-66316/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control/read.awp">[WD16] Width of a static control</source><title>Re: [WD16] Width of a static control</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control-66314/read.awp</comments><pubDate>22 Jul 2018 16:26:00 Z</pubDate><description>Solved.&#13;
&#13;
It should be Textwidth (withaut "i") and there is a bug:&#13;
If your string has space it doesn´t work correctly, you hav…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control-66314/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control-66314/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66297-wd16-width-static-control/read.awp">[WD16] Width of a static control</source><title>Re: [WD16] Width of a static control</title></item></channel></rss>
