Ces fonctions n'existent pas en Panoramic, mais tu peux trouver une solution externe sur le site de Klaus:
http://klaus.panoramic.voila.net/Externes.4.html rubrique 'Trouver les dimensions physiques d'un string'.
These functions does not yet exist in Panoramic, but you can find an external solution on the website of Klaus (see above):
at 'Trouver les dimensions physiques d'un string', it is a zip file to download:TextLen.24.zip
Usage: interactive mode or command line mode.
Example, in command line mode (interesting in Panoramic programming):
- Code:
-
EXECUTE_WAIT "TextLen.exe /text="string" /font="Font" /fontsize=size /mode"UBI"
See the Readme.txt file for usage examples.
Example given by Klaus:
/text="AZERTY" /font="Times New Roman" /fontsize=12 /mode="BI"
The result is given in a temp file: TextLen.tmp (in the working directory), containing 3 lines:
63/19/ width/height in pixels <- the only interesting line here, for centering
47,25/14,25/ width/height in points
16,66877/5,027088/ width/height in mm
(temp file to be destroyed after reading)
With this, it is easy to center a text on a Panoramic object.
PS toujours aucune nouvelle de notre ami Klaus...