Fitting Text: the spades and shovels solution

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Fitting Text: the spades and shovels solution

Post by richmond62 » Wed Aug 14, 2024 10:10 am

*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]
Attachments
Text Accommodater.livecode.zip
Stack.
(1.06 KiB) Downloaded 98 times
Screen Shot 2024-08-14 at 12.08.39 pm.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Fitting Text: the spades and shovels solution

Post by richmond62 » Wed Aug 14, 2024 10:18 am

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)

Post Reply