I don't want the comment box to grow!

Apr 2, 2011 at 3:37pm

I don't want the comment box to grow!

I’m using a comment box to display the filename and other characteristics of the file in my buffer; it’s being used in presentation mode and so its placement is very specific. I don’t want the box to grow (or the text to wrap) if the text happens to be longer than what the space allows for.

Is there any way to tell the comment box “only allow x number of characters and if x is exceeded then forget about the rest”?

#56032
Apr 2, 2011 at 5:23pm

You could use a mostly transparent [textedit] object instead of [comment].

#201290
Apr 2, 2011 at 5:32pm

Yes! Why didn’t I think of that… :)

#201291
Apr 2, 2011 at 5:35pm

Hello,

i don’t know, but do it yourself ;-)

– Pasted Max Patch, click to expand. –
#201292

You must be logged in to reply to this topic.