alex at tweedly.net
Tue Nov 9 14:11:57 EST 2010
I haven't thought this through, but .....
there are only 3 (or maybe 4) different indent cases.
create a suitable image for each case (i.e. normal, bulletted, 2nd
level, continuation, etc.) which is blank space of the appropriate
number of pixels wide
then insert an extra character at the start of each line, and set the
imagesource of that first character according according to what kind of
line it is
On 09/11/2010 18:39, Scott Rossi wrote:
> Hi List:
> Was hoping someone here might have some uncanny insight into how to solve a
> text formatting dilemma...
> Basic problem: I need to create two levels on indenting in a block of text,
> but the text needs to always be directly editable and may span multiple
> About a month or so back I mentioned an app I was working on that was sort
> of a poor man's PowerPoint, and was trying to mimic the bullet formatting
> one can apply to text. I've been asked to implement two levels
> bulleting/indenting, something like the following (hope it comes across):
> € Main Bullet Item 1 that spans
> multiple lines
> € Main Bullet Item 2
> - Secondary Bullet 1
> - Secondary Bullet 2 which
> spans multiple lines
> - Secondary Bullet 3
> € Main Bullet Item 3
> I can accomplish the first level bullet/indenting using a combination of
> margins and firstIndent, but I can't figure out a way to handle second
> level. To date I've been using HTMLtext and non-breaking spaces to pad the
> secondary level lines, but arbitrarily adding spaces to live editable text
> is messy, and I can't find a way to align a padded+wrapped line with the
> line above it. It occurred to me maybe there's some non-typeable,
> non-selectable character I could use for padding, but I only know of
> formFeed/lineFeed characters which wouldn't help here.
> And the thing that really makes this difficult is the fact that the text
> needs to be directly editable by users (cannot be in a locked field).
> Any suggestions on how I might tackle this?
> Thanks& Regards,
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode