updating oE wrap

wrap

include graphics.e 
namespace graphics 
public procedure wrap(object on = 1) 

determines whether text will wrap when hitting the rightmost column.

Parameters:
  1. on : an object, 0 to truncate text, anything else to wrap.
Comments:

By default text will wrap.

Use wrap in text modes or pixel-graphics modes when you are displaying long lines of text.

Example 1:
puts(1, repeat('x', 100) & "\n\n") 
-- now have a line of 80 'x' followed a line of 20 more 'x' 
wrap(0) 
puts(1, repeat('x', 100) & "\n\n") 
-- creates just one line of 80 'x' 
See Also:

puts, position

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu