Request for character wrap (not word wrap) in fields

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5893
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Request for character wrap (not word wrap) in fields

Post by richmond62 » Wed Jun 30, 2021 5:02 pm

However a charWrap can be performed in LiveCode comparatively easily:
-
SShot 2021-06-30 at 18.58.13.png
-
Button charWrap:

Code: Select all

on mouseUp
   put empty into fld "fKUP"
   put fld "f2" into EFF2
   put empty into fld "f2"
   repeat until EFF2 is empty
      put char 1 of EFF2 after fld "fKUP"
      if the (formattedWidth of fld "fKUP") > (width of fld "f2") then
         put (fld "fKUP" & cr) after fld "f2"
         put empty into fld "fKUP"
      else
         --nix
      end if
      delete char 1 of EFF2
   end repeat
   put fld "fKUP" after fld "f2"
end mouseUp
Oh, and "bye-ther-way" re Fourthworld's sensible words elsewhere: this stack is FREE, FREE, FREE and up for grabs: no copyright,
no promises; it may curdle your milk or make your horse go lame; tough; you are not going to get to duck me in the village pond.
Attachments
Wrapper.livecode.zip
Here's the stack.
(1.33 KiB) Downloaded 20 times

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 337
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Request for character wrap (not word wrap) in fields

Post by thatkeith » Wed Jun 30, 2021 5:08 pm

gold.standard.MSWord
Not any more, more like Schlagmetal these days.
I did raise an eyebrow at that 'gold standard' mention! :lol:

Off Topic ramble:
Microsoft Word may be a standard thanks to it dominating the business world, but 'Gold Standard' implies quality and excellence – of which Word has an astonishing lack of either. IMO it's been a lumbering behemoth since Word 5.1. Frankly, the ONLY thing about Word that I like is its live word count, which came directly from a project I made and pushed hard at the MS Office project manager in the mid-90s. (Made using SuperCard, so the sole 'useful-to-me' feature in Word originated in an xTalk project. 8) )
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5893
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Request for character wrap (not word wrap) in fields

Post by richmond62 » Wed Jun 30, 2021 5:18 pm

I like is its live word count
Yes, I do like LibreOffice's live word count: :twisted:
-
SShot 2021-06-30 at 19.17.09.png

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 337
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Request for character wrap (not word wrap) in fields

Post by thatkeith » Wed Jun 30, 2021 5:22 pm

It all started with Wordless! (Name chosen very much on purpose. 😇)
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

Post Reply

Return to “Feature Proposals”