|
| [WD16] Width of a static control |
| Iniciado por guest, 22,jul. 2018 15:59 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 22,julio 2018 - 15:59 |
Hi,
I need the textwidth of a static control at runtime. The text of the static control can be modified by the user.
I tried:
STC_Ansprechpartner..Width=iTextWidth(STC_Ansprechpartner)
but the result is not right .. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,julio 2018 - 16:26 |
Solved.
It should be Textwidth (withaut "i") and there is a bug: If your string has space it doesn´t work correctly, you have to replace it with underline. |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 102 mensajes |
|
| Publicado el 23,julio 2018 - 11:55 |
Michael,
it works for me (WinDev 21). Maybe you should try this:
TextWidth(STC_Ansprechpartner,STC_Ansprechpartner..Caption)
-- http://arnoldconsult.de WinDev 21 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL |
| |
| |
| | | |
|
| | | | |
| | |
|