![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi all, is there any function to check for the real text length on a formatted field? I do want some automatic font resizing in order to apply the max label print. It's great have all those text formatting functions, but I did not see any to * check for actual print length * whether wrapping would apply * whether scrolling would be active Labels are just one application - another one would be to change layouts in order to show proper screen efficiency. Is it possible at all? Thanks, Martin |
#2
| |||
| |||
|
|
But that's exactly the reason why I do see the need to get this info from the program, such as Get(FieldContentLength) Get(FieldContentHeight) returning a value in pixels. |
#3
| |||
| |||
|
|
Hi all, is there any function to check for the real text length on a formatted field? I do want some automatic font resizing in order to apply the max label print. It's great have all those text formatting functions, but I did not see any to * check for actual print length * whether wrapping would apply * whether scrolling would be active Labels are just one application - another one would be to change layouts in order to show proper screen efficiency. Is it possible at all? Thanks, Martin |
Verdana/whatever font) could be easily
#4
| |||
| |||
|
|
On Thu, 30 Sep 2010 09:08:04 +0930, 105 wrote: Just a maybe; what about thinking in terms of the number of characters, multipled by the character width converted to a monospaced font at that screen res? Maybe the screen res does not actually even matter. Monospaced is a solution, but a very poor one. You loose the ability of taking the font you want and have to stick to ugly monospaced ones. However, fonts may differ from installation to installation, since there's more than one "Courier" only. Last time I checked, from FMP 8 on monospaced no longer where monospaced: while up to FMP 7 you could create pixel graphics by taking a monospaced font of size 1 or even 2, monospaced no longer was monospaced. And even for longer texts you can't use it if you do take use of an automatic hyphenation. So it would be much easier to have this kind of function available, instead of trying to work around it. So we'll have to wait for some future version of FMP, can't be done here? I hoped for some woraround e.g. via PDF export and analysis, or via web versions. - Martin |
![]() |
| Thread Tools | |
| Display Modes | |
| |