Yeah, a little kludgy but workable maybe with some labor (was hoping to avoid labor though).
Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/12/13 6:44 PM, "dunb...@aol.com" <dunb...@aol.com> wrote: >Scott. > > >This is a Kluge and a half, but I filled a field with some text. In a >button script: > > > >on mouseUp > ask "What length to trunc?" > if it is not an integer then exit mouseup > click at the left of fld 1 + it & "," & the top of fld 1 + 12 > put "..." into char (word 2 of the selectedChunk) to 10000 of fld 1 >end mouseUp > > >Is this anything like you wanted? Of course the subsequent text is lost, >though it could be saved somewhere. And I only dealt with the first line, >since I hard coded the vertical dimension (12) of the click location. But >I can see it being extended anywhere in the field. > > >Craig Newman > > > >-----Original Message----- >From: Scott Rossi <sc...@tactilemedia.com> >To: LiveCode Mail List <use-livecode@lists.runrev.com> >Sent: Wed, Jun 12, 2013 9:15 pm >Subject: Truncate Text Based On Available Space? > > >Has anyone created a routine that will truncate text in a field to given >pixel width, and append ellipses? > >I found one that limits text based on character count, but I'm looking to >limit based on available space. > >Thanks & Regards, > >Scott Rossi >Creative Director >Tactile Media, UX/UI Design > > > > >_______________________________________________ >use-livecode mailing list >use-livecode@lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription >preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode > > >_______________________________________________ >use-livecode mailing list >use-livecode@lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode