EDIT_FILE_OPEN

In this section:

  • INC
  • INTERNET_HYPERLINK
  • MINIMISE, MAXIMISE & RESTORE
  • PRINT_ABORT
  • PRINTER_OPEN
  • PRINTER_OPEN1
  • PRINTER_SELECT
  • PRINTER_SETUP
  • SELECT_ALL
  • SET
  • SETF
  • SOUND
  • STOP
  • SUPER_MAXIMISE
  • TEXT
  • TEXT_HISTORY
  • TILE_HORIZONTALLY
  • TILE_VERTICALLY
  • TOGGLE
  • +
  • A simple text editor
  • This standard call-back is used with %eb (Edit Box) and takes a character string argument containing a file pattern (e.g. '*.TXT'). A second character string argument (called fname say) is required for the resultant file name (of size 129). A standard Windows 'file open' dialog is displayed and the resultant file is written to fname. The file is then displayed in a %eb edit box that is included in the current format window, replacing any text already there. This standard call-back must only be used in a format window containing one and only one %eb edit box. The corresponding edit box is usually supplied with a buffer length of zero when it is set up, so that the system allocates the buffer and adjusts its size as necessary.

    An example program appears in A simple text editor.

    See also

    EDIT_FILE, EDIT_FILE_SAVE

     

     

    Basket
    Empty
     
    Copyright © 1999-2024 Silverfrost Limited