home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c016 / 3.ddi / SOFINC.PAK / PIDOC1.H
Encoding:
C/C++ Source or Header  |  1993-12-15  |  6.5 KB  |  223 lines

  1. //--------------------------------------------------------
  2. // PIDOC1.H generated from PIDOC.VBX by
  3. // VbxGen 1.0 - Borland International
  4. //--------------------------------------------------------
  5.  
  6. #ifdef __OWL_OWLDEFS_H
  7.   #include <owl\vbxctl.h>
  8. #endif
  9.  
  10. //--------------------------------------------------------
  11. // PI_DocEdit (VB1)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_PI_DocEdit_CtlName 0
  16. #define Prop_PI_DocEdit_Parent 1
  17. #define Prop_PI_DocEdit_Left 2
  18. #define Prop_PI_DocEdit_Top 3
  19. #define Prop_PI_DocEdit_Width 4
  20. #define Prop_PI_DocEdit_Height 5
  21. #define Prop_PI_DocEdit_Enabled 6
  22. #define Prop_PI_DocEdit_Visible 7
  23. #define Prop_PI_DocEdit_Caption 8
  24. #define Prop_PI_DocEdit_Action 9
  25. #define Prop_PI_DocEdit_RTFText 10
  26. #define Prop_PI_DocEdit_FontFace 11
  27. #define Prop_PI_DocEdit_FontSize 12
  28. #define Prop_PI_DocEdit_CharStyle 13
  29.  
  30. // events
  31. #define Event_PI_DocEdit_Click 0
  32. #define Event_PI_DocEdit_DblClick 1
  33. #define Event_PI_DocEdit_MouseDown 2
  34. #define Event_PI_DocEdit_MouseMove 3
  35. #define Event_PI_DocEdit_MouseUp 4
  36. #define Event_PI_DocEdit_GotFocus 5
  37. #define Event_PI_DocEdit_KeyDown 6
  38. #define Event_PI_DocEdit_KeyPress 7
  39. #define Event_PI_DocEdit_KeyUp 8
  40. #define Event_PI_DocEdit_LostFocus 9
  41.  
  42. // default form data
  43. //
  44. // Some VBX controls do not operate correctly when created without
  45. // a form file.  This occurs when a program creates a control
  46. // dynamically rather than as part of a dialog resource.  If this
  47. // control exhibits problems in this mode, try creating it with the
  48. // following form data:
  49. //
  50. // For OWL programs:
  51. //
  52. //   TVbxPI_DocEdit* c = new TVbxPI_DocEdit(..., sizeof(PI_DocEditData), PI_DocEditData);
  53. //
  54. // For C/C++ programs:
  55. //
  56. //   HFORMFILE file = VBXCreateFormFile(sizeof(PI_DocEditData), PI_DocEditData);
  57. //   HCTL c = VBXCreate(..., file);
  58. //   VBXDeleteFormFile(file);
  59. //
  60. // Note that the VBXGEN_DATA or PI_DocEdit_DATA symbol must be
  61. // defined in order to use the default form data.
  62. //
  63. extern BYTE PI_DocEditData[20L];
  64. #if defined(VBXGEN_DATA) || defined(PI_DocEdit_DATA)
  65.   BYTE PI_DocEditData[20L]={
  66.     0x02,0x06,0xff,0xff,0x07,0xff,0xff,0x08,
  67.     0x0a,0x50,0x49,0x5f,0x44,0x6f,0x63,0x45,
  68.     0x64,0x69,0x74,0xff,
  69.   };
  70. #endif
  71.  
  72. #ifdef __OWL_VBXCTL_H
  73.  
  74. // OWL class
  75. class TVbxPI_DocEdit : public TVbxControl {
  76.   public:
  77.  
  78.     // constructors
  79.     TVbxPI_DocEdit(TWindow* parent, int id, LPCSTR title,
  80.         int x, int y, int w, int h,
  81.         long initLen=0, void far* initData=0, TModule* module=0) :
  82.       TVbxControl(parent, id, "PIDOC.VBX", "PI_DocEdit",
  83.           title, x, y, w, h, initLen, initData, module) {}
  84.  
  85.     TVbxPI_DocEdit(TWindow* parent, int resourceId, TModule* module=0) :
  86.         TVbxControl(parent, resourceId, module) {}
  87.  
  88. #if 0
  89.     // event handlers
  90.     void EvClick(VBXEVENT FAR*)
  91.     {
  92.       // no arguments
  93.     }
  94.  
  95.     void EvDblClick(VBXEVENT FAR*)
  96.     {
  97.       // no arguments
  98.     }
  99.  
  100.     void EvMouseDown(VBXEVENT FAR*)
  101.     {
  102.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  103.     }
  104.  
  105.     void EvMouseMove(VBXEVENT FAR*)
  106.     {
  107.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  108.     }
  109.  
  110.     void EvMouseUp(VBXEVENT FAR*)
  111.     {
  112.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  113.     }
  114.  
  115.     void EvGotFocus(VBXEVENT FAR*)
  116.     {
  117.       // no arguments
  118.     }
  119.  
  120.     void EvKeyDown(VBXEVENT FAR*)
  121.     {
  122.       // KeyCode As Integer,Shift As Integer
  123.     }
  124.  
  125.     void EvKeyPress(VBXEVENT FAR*)
  126.     {
  127.       // KeyAscii As Integer
  128.     }
  129.  
  130.     void EvKeyUp(VBXEVENT FAR*)
  131.     {
  132.       // KeyCode As Integer,Shift As Integer
  133.     }
  134.  
  135.     void EvLostFocus(VBXEVENT FAR*)
  136.     {
  137.       // no arguments
  138.     }
  139.  
  140. #endif
  141.  
  142.     // enumerations
  143.     enum { // values for property Action
  144.       Action_None,
  145.       Action_Open,
  146.       Action_Save,
  147.       Action_Save_As,
  148.       Action_Print,
  149.       Action_Cut,
  150.       Action_Copy,
  151.       Action_Paste,
  152.       Action_Clear,
  153.       Action_SelectAll,
  154.     };
  155.  
  156.  
  157.     // properties
  158.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  159.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  160.  
  161.     BOOL GetPropParent(int& v) {return GetProp(1,v);}
  162.     BOOL SetPropParent(int v) {return SetProp(1,v);}
  163.  
  164.     BOOL GetPropLeft(long& v) {return GetProp(2,v);}
  165.     BOOL SetPropLeft(long v) {return SetProp(2,v);}
  166.  
  167.     BOOL GetPropTop(long& v) {return GetProp(3,v);}
  168.     BOOL SetPropTop(long v) {return SetProp(3,v);}
  169.  
  170.     BOOL GetPropWidth(long& v) {return GetProp(4,v);}
  171.     BOOL SetPropWidth(long v) {return SetProp(4,v);}
  172.  
  173.     BOOL GetPropHeight(long& v) {return GetProp(5,v);}
  174.     BOOL SetPropHeight(long v) {return SetProp(5,v);}
  175.  
  176.     BOOL GetPropEnabled(BOOL& v) {return GetProp(6,v);}
  177.     BOOL SetPropEnabled(BOOL v) {return SetProp(6,v);}
  178.  
  179.     BOOL GetPropVisible(BOOL& v) {return GetProp(7,v);}
  180.     BOOL SetPropVisible(BOOL v) {return SetProp(7,v);}
  181.  
  182.     BOOL GetPropCaption(string& v) {return GetProp(8,v);}
  183.     BOOL SetPropCaption(string& v) {return SetProp(8,v);}
  184.  
  185.     BOOL GetPropAction(ENUM& v) {return GetProp(9,v);}
  186.     BOOL SetPropAction(ENUM v) {return SetProp(9,v);}
  187.  
  188.     BOOL GetPropRTFText(string& v) {return GetProp(10,v);}
  189.     BOOL SetPropRTFText(string& v) {return SetProp(10,v);}
  190.  
  191.     BOOL GetPropFontFace(string& v) {return GetProp(11,v);}
  192.     BOOL SetPropFontFace(string& v) {return SetProp(11,v);}
  193.  
  194.     BOOL GetPropFontSize(int& v) {return GetProp(12,v);}
  195.     BOOL SetPropFontSize(int v) {return SetProp(12,v);}
  196.  
  197.     BOOL GetPropCharStyle(int& v) {return GetProp(13,v);}
  198.     BOOL SetPropCharStyle(int v) {return SetProp(13,v);}
  199.  
  200. #if 0
  201.   DECLARE_RESPONSE_TABLE(TVbxPI_DocEdit);
  202. #endif
  203. };
  204.  
  205. #if 0
  206. // OWL response table
  207. DEFINE_RESPONSE_TABLE1(TVbxPI_DocEdit, TVbxControl)
  208.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_Click, EvClick ),
  209.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_DblClick, EvDblClick ),
  210.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_MouseDown, EvMouseDown ),
  211.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_MouseMove, EvMouseMove ),
  212.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_MouseUp, EvMouseUp ),
  213.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_GotFocus, EvGotFocus ),
  214.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_KeyDown, EvKeyDown ),
  215.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_KeyPress, EvKeyPress ),
  216.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_KeyUp, EvKeyUp ),
  217.   EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_LostFocus, EvLostFocus ),
  218. END_RESPONSE_TABLE;
  219. #endif
  220.  
  221. #endif
  222.  
  223.