Topic : TOS - The Operating System Author : Version : tos.hyp (December 19, 2008) Subject : Programmieren/Atari Nodes : 3010 Index Size : 93790 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Title @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File8.6.23 edit_set_format TOS Name: »Edit Object Set Format« - Alter settings: Formating Opcode: 217 (sub-opcode 1) Syntax: void edit_set_format ( OBJECT *tree, int16_t obj, int16_t tabwidth, int16_t autowrap ); Description: The call edit_set_format sets the formatting of text in an editable object. The following apply: Parameter Meaning tree Object tree obj Object index tabwidth 1 or tabulator width in pixels autowrap -1: Do not change > 0: Pixel width for auto line wrap (generally == object width) = 0: No wrapping, but horiz. scrolling If one of the two attributes is to remain unchanged then -1 can be passed. If the editable object was opened previously then one should generally trigger a redraw when changing one of the attributes. From version 9 of the SLB the number of lines is recalculated when the autowrap setting is altered. In older versions this only happens with edit_set_buf. Return value: The function does not return a result. Availability: As of MagiC 5.20 by means of a shared library. Group: Editable object functions See Also: Binding