•  Back 
  •  Editable object functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
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.25  Using G_EDIT objects                                       TOS

   . In the RSC file a white G_BOX, without border, is included
   . In the program the SharedLib is loaded
   . For each G_EDIT object:
        - Create text buffer.
        - Create editable object with edit_create.
        - Alter object type in G_EDIT and place ob_spec on the 
          editable object.
        - Allocate the text buffer with edit_set_buf.
        - If necessary alter the settings of the editable object with 
          edit_set_xxx.
        - Open editable object with edit_open.
        - Only then draw the tree with objc_draw.
   . In order to pass keyboard codes and mouse clicks to the editable 
     object, one has to call edit_evnt. The syntax is fully analogous 
     to wdlg_evnt, fslx_evnt and fnts_evnt.
   . When closing, the edit field must be closed with edit_close, 
     after which the memory reserved for the edit field is released 
     again with edit_delete. No further objc_draw may be performed! If 
     necessary, set the object type on G_BOX once more.

See Also: Keyboard codes for G_EDIT