home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 2.ddi / TVINC.ZIP / HELP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.8 KB  |  67 lines

  1. /* ------------------------------------------------------------------------*/
  2. /*                                                                         */
  3. /*   HELP.H                                                                */
  4. /*                                                                         */
  5. /*   Copyright (c) Borland International 1991                              */
  6. /*   All Rights Reserved.                                                  */
  7. /*                                                                         */
  8. /*   defines the classes THelpViewer and THelpWindow                       */
  9. /*                                                                         */
  10. /* ------------------------------------------------------------------------*/
  11.  
  12. #if !defined( __HELP_H )
  13. #define __HELP_H
  14.  
  15. #define Uses_TStreamable
  16. #define Uses_ipstream
  17. #define Uses_opstream
  18. #define Uses_TObject
  19. #define Uses_TPoint
  20. #define Uses_TRect
  21. #define Uses_TEvent
  22. #define Uses_TScroller
  23. #define Uses_TScrollBar
  24. #define Uses_TWindow
  25. #include <tv.h>
  26.  
  27. #include <helpbase.h>
  28.  
  29. // THelpViewer
  30.  
  31. class THelpViewer : public TScroller
  32. {
  33. public:
  34.  
  35.     THelpViewer( const TRect&, TScrollBar*, TScrollBar*, THelpFile*, ushort );
  36.     ~THelpViewer();
  37.  
  38.     virtual void changeBounds( TRect& );
  39.     virtual void draw();
  40.     virtual TPalette& getPalette() const;
  41.     virtual void handleEvent( TEvent& );
  42.     void makeSelectVisible( int, TPoint&, uchar&, int& );
  43.     void switchToTopic( int );
  44.  
  45.     THelpFile *hFile;
  46.     THelpTopic *topic;
  47.     int selected;
  48. };
  49.  
  50. // THelpWindow
  51.  
  52. class THelpWindow : public TWindow
  53. {
  54. public:
  55.  
  56.     THelpWindow( THelpFile*, ushort );
  57.  
  58.     virtual TPalette& getPalette() const;
  59. };
  60.  
  61.  
  62. extern void notAssigned( opstream& s, int value );
  63.  
  64. extern TCrossRefHandler crossRefHandler;
  65.  
  66. #endif  // __HELP_H
  67.