Page 1 of 1

Fitting Text: the spades and shovels solution

Posted: Wed Aug 14, 2024 10:10 am
by richmond62
*Richmond was on holiday for 9 days and is somewhat out of the loop*

There was a recent post (which I now cannot find) where some people were being "very clever' to ensure that text in a field was 100% visible on whatever machine and whatever operating system it was displayed on.

As Mother (rising 95) has not had a gardener for about 2 years, while up on a wall chewing my way through about 18 inches of entangled ivy I was meditating on that thread, and now I am unsafely back in Bulgaria ...

Anyway: goofy solution, for whatever it's worth, in a cardScript:

Code: Select all

on preOpenCard
   put the formattedWidth of fld "ff" into WIDD
   put the formattedHeight of fld "ff" into HITE
   set the width of fld "ff" to WIDD
   set the height of fld "ff" to HITE
   set the location of fld "ff" to 300,200
end preOpenCard
[/code}
-
[attachment=1]Screen Shot 2024-08-14 at 12.08.39 pm.png[/attachment]

Re: Fitting Text: the spades and shovels solution

Posted: Wed Aug 14, 2024 10:18 am
by richmond62
Cunningly authored using LiveCode 8.2 DP 2 on an iMac running MacOS 10.7.5, proving, if nothing else, that middle-aged tech still rocks. 8)