home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / fed0217s.zip / include / stddlg.h < prev    next >
C/C++ Source or Header  |  2000-12-13  |  2KB  |  51 lines

  1. /*
  2. ** Module   :STDDLG.H
  3. ** Abstract :Standard controls
  4. **
  5. ** Copyright (C) Sergey I. Yevtushenko
  6. **
  7. ** Log: Wed  12/11/1997       Created
  8. */
  9.  
  10. #include <boxcoll.h>
  11. #include <dialog.h>
  12.  
  13. #ifndef  __STDDLG_H
  14. #define  __STDDLG_H
  15.  
  16. //-----------------------------------------------------------
  17. // Standard controls
  18. //-----------------------------------------------------------
  19.  
  20. // Input:
  21. //      r        - Row
  22. //      c        - Col
  23. //      itemlist - array of pointers to text strings, last item must be NULL
  24. //      title    - dialog title
  25. // Output:
  26. //      number of selected item or -1 (if Esc key was pressed)
  27. int AChoice(int r, int c, char **itemlist, char* title = 0);
  28.  
  29. // Input:
  30. //      r         - Row
  31. //      c         - Col
  32. //      searchstr - Initial value for search string
  33. //      replacestr- Initial value for replace string
  34. //      flags     - Initial value for flags string
  35. //
  36. // Output:
  37. //      0 if success, -1 cancel
  38. //      if success searchstr, replacestr and flags filled with new values.
  39. // Attention:
  40. //      function assumes size of searchstr, replacestr for 1024 bytes,
  41. //      flags - 32 bytes.
  42. int SearchReplace(int r, int c, char *searchstr, char *replacestr, char* flags);
  43. int FileDialog(int r, int c, char *name, int flags);
  44. int AskNumber(int r, int c, int *number, char *hdr);
  45. int AskString(int r, int c, char** res, char *hdr);
  46. int MessageBox(char *text, KeyInfo* lastkey = 0, int timeout = 0);
  47.  
  48. int JumpListBox(PJumpList, int r, int c, int nr, int nc);
  49.  
  50. #endif //__STDDLG_H
  51.