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

  1. //--------------------------------------------------------
  2. // SAXTABS1.H generated from SAXTABS.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. // SaxTab (VB1)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_SaxTab_CtlName 0
  16. #define Prop_SaxTab_Index 1
  17. #define Prop_SaxTab_BackColor 2
  18. #define Prop_SaxTab_Left 3
  19. #define Prop_SaxTab_Top 4
  20. #define Prop_SaxTab_Width 5
  21. #define Prop_SaxTab_Height 6
  22. #define Prop_SaxTab_Visible 7
  23. #define Prop_SaxTab_Parent 8
  24. #define Prop_SaxTab_DragMode 9
  25. #define Prop_SaxTab_DragIcon 10
  26. #define Prop_SaxTab_Tag 11
  27. #define Prop_SaxTab_Caption 12
  28. #define Prop_SaxTab_FontName 13
  29. #define Prop_SaxTab_FontBold 14
  30. #define Prop_SaxTab_FontItalic 15
  31. #define Prop_SaxTab_FontStrikethru 16
  32. #define Prop_SaxTab_FontUnderline 17
  33. #define Prop_SaxTab_FontSize 18
  34. #define Prop_SaxTab_BorderStyle 19
  35. #define Prop_SaxTab_TabIndex 20
  36. #define Prop_SaxTab_TabStop 21
  37. #define Prop_SaxTab_Enabled 22
  38. #define Prop_SaxTab_MousePointer 23
  39. #define Prop_SaxTab_hWnd 24
  40. #define Prop_SaxTab_InactiveTextColor 25
  41. #define Prop_SaxTab_ActiveTextColor 26
  42. #define Prop_SaxTab_InactiveTabColor 27
  43. #define Prop_SaxTab_ActiveTabColor 28
  44. #define Prop_SaxTab_ActiveTab 29
  45. #define Prop_SaxTab_About 30
  46.  
  47. // events
  48. #define Event_SaxTab_Click 0
  49. #define Event_SaxTab_DragDrop 1
  50. #define Event_SaxTab_DragOver 2
  51.  
  52. // default form data
  53. //
  54. // Some VBX controls do not operate correctly when created without
  55. // a form file.  This occurs when a program creates a control
  56. // dynamically rather than as part of a dialog resource.  If this
  57. // control exhibits problems in this mode, try creating it with the
  58. // following form data:
  59. //
  60. // For OWL programs:
  61. //
  62. //   TVbxSaxTab* c = new TVbxSaxTab(..., sizeof(SaxTabData), SaxTabData);
  63. //
  64. // For C/C++ programs:
  65. //
  66. //   HFORMFILE file = VBXCreateFormFile(sizeof(SaxTabData), SaxTabData);
  67. //   HCTL c = VBXCreate(..., file);
  68. //   VBXDeleteFormFile(file);
  69. //
  70. // Note that the VBXGEN_DATA or SaxTab_DATA symbol must be
  71. // defined in order to use the default form data.
  72. //
  73. extern BYTE SaxTabData[112L];
  74. #if defined(VBXGEN_DATA) || defined(SaxTab_DATA)
  75.   BYTE SaxTabData[112L]={
  76.     0x01,0x00,0x00,0x02,0xff,0xff,0xd7,0x00,
  77.     0x03,0x07,0xff,0xff,0x09,0x00,0x0b,0x00,
  78.     0x0c,0x06,0x53,0x61,0x78,0x54,0x61,0x62,
  79.     0x0d,0x40,0x01,0x07,0x00,0x00,0x00,0x00,
  80.     0x00,0xbc,0x02,0x00,0x00,0x00,0x00,0x01,
  81.     0x02,0x02,0x22,0x53,0x79,0x73,0x74,0x65,
  82.     0x6d,0x00,0x08,0x50,0x00,0x36,0x14,0x50,
  83.     0x00,0x36,0x14,0xaf,0x08,0x17,0x27,0x73,
  84.     0x19,0x67,0x08,0x50,0x00,0x36,0x14,0x64,
  85.     0x17,0xc4,0x1d,0x13,0x00,0x14,0x00,0x00,
  86.     0x15,0x00,0x00,0x16,0xff,0xff,0x17,0x00,
  87.     0x19,0x00,0x00,0x00,0x00,0x1a,0x00,0x00,
  88.     0x00,0x00,0x1b,0xc0,0xc0,0xc0,0x00,0x1c,
  89.     0xff,0xff,0xff,0x00,0x1d,0x00,0x00,0xff,
  90.     
  91.   };
  92. #endif
  93.  
  94. #ifdef __OWL_VBXCTL_H
  95.  
  96. // OWL class
  97. class TVbxSaxTab : public TVbxControl {
  98.   public:
  99.  
  100.     // constructors
  101.     TVbxSaxTab(TWindow* parent, int id, LPCSTR title,
  102.         int x, int y, int w, int h,
  103.         long initLen=0, void far* initData=0, TModule* module=0) :
  104.       TVbxControl(parent, id, "SAXTABS.VBX", "SaxTab",
  105.           title, x, y, w, h, initLen, initData, module) {}
  106.  
  107.     TVbxSaxTab(TWindow* parent, int resourceId, TModule* module=0) :
  108.         TVbxControl(parent, resourceId, module) {}
  109.  
  110. #if 0
  111.     // event handlers
  112.     void EvClick(VBXEVENT FAR*)
  113.     {
  114.       // no arguments
  115.     }
  116.  
  117.     void EvDragDrop(VBXEVENT FAR*)
  118.     {
  119.       // Source As Control,X As Integer,Y As Integer
  120.     }
  121.  
  122.     void EvDragOver(VBXEVENT FAR*)
  123.     {
  124.       // Source As Control,X As Integer,Y As Integer,State As Integer
  125.     }
  126.  
  127. #endif
  128.  
  129.     // enumerations
  130.     enum { // values for property DragMode
  131.       DragMode_0_Manual,
  132.       DragMode_1_Automatic,
  133.     };
  134.  
  135.     enum { // values for property BorderStyle
  136.       BorderStyle_0_None,
  137.       BorderStyle_1_Fixed_Single,
  138.     };
  139.  
  140.     enum { // values for property MousePointer
  141.       MousePointer_0_Default,
  142.       MousePointer_1_Arrow,
  143.       MousePointer_2_Cross,
  144.       MousePointer_3_IBeam,
  145.       MousePointer_4_Icon,
  146.       MousePointer_5_Size,
  147.       MousePointer_6_Size_NE_SW,
  148.       MousePointer_7_Size_NS,
  149.       MousePointer_8_Size_NW_SE,
  150.       MousePointer_9_Size_WE,
  151.       MousePointer_10_Up_Arrow,
  152.       MousePointer_11_Hourglass,
  153.       MousePointer_12_No_Drop,
  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 GetPropIndex(int& v) {return GetProp(1,v);}
  162.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  163.  
  164.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(2,v);}
  165.     BOOL SetPropBackColor(COLORREF v) {return SetProp(2,v);}
  166.  
  167.     BOOL GetPropLeft(long& v) {return GetProp(3,v);}
  168.     BOOL SetPropLeft(long v) {return SetProp(3,v);}
  169.  
  170.     BOOL GetPropTop(long& v) {return GetProp(4,v);}
  171.     BOOL SetPropTop(long v) {return SetProp(4,v);}
  172.  
  173.     BOOL GetPropWidth(long& v) {return GetProp(5,v);}
  174.     BOOL SetPropWidth(long v) {return SetProp(5,v);}
  175.  
  176.     BOOL GetPropHeight(long& v) {return GetProp(6,v);}
  177.     BOOL SetPropHeight(long 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 GetPropParent(int& v) {return GetProp(8,v);}
  183.     BOOL SetPropParent(int v) {return SetProp(8,v);}
  184.  
  185.     BOOL GetPropDragMode(ENUM& v) {return GetProp(9,v);}
  186.     BOOL SetPropDragMode(ENUM v) {return SetProp(9,v);}
  187.  
  188.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(10,v);}
  189.     BOOL SetPropDragIcon(HPIC v) {return SetProp(10,v);}
  190.  
  191.     BOOL GetPropTag(string& v) {return GetProp(11,v);}
  192.     BOOL SetPropTag(string& v) {return SetProp(11,v);}
  193.  
  194.     BOOL GetPropCaption(string& v) {return GetProp(12,v);}
  195.     BOOL SetPropCaption(string& v) {return SetProp(12,v);}
  196.  
  197.     BOOL GetPropFontName(string& v) {return GetProp(13,v);}
  198.     BOOL SetPropFontName(string& v) {return SetProp(13,v);}
  199.  
  200.     BOOL GetPropFontBold(BOOL& v) {return GetProp(14,v);}
  201.     BOOL SetPropFontBold(BOOL v) {return SetProp(14,v);}
  202.  
  203.     BOOL GetPropFontItalic(BOOL& v) {return GetProp(15,v);}
  204.     BOOL SetPropFontItalic(BOOL v) {return SetProp(15,v);}
  205.  
  206.     BOOL GetPropFontStrikethru(BOOL& v) {return GetProp(16,v);}
  207.     BOOL SetPropFontStrikethru(BOOL v) {return SetProp(16,v);}
  208.  
  209.     BOOL GetPropFontUnderline(BOOL& v) {return GetProp(17,v);}
  210.     BOOL SetPropFontUnderline(BOOL v) {return SetProp(17,v);}
  211.  
  212.     BOOL GetPropFontSize(float& v) {return GetProp(18,v);}
  213.     BOOL SetPropFontSize(float v) {return SetProp(18,v);}
  214.  
  215.     BOOL GetPropBorderStyle(ENUM& v) {return GetProp(19,v);}
  216.     BOOL SetPropBorderStyle(ENUM v) {return SetProp(19,v);}
  217.  
  218.     BOOL GetPropTabIndex(int& v) {return GetProp(20,v);}
  219.     BOOL SetPropTabIndex(int v) {return SetProp(20,v);}
  220.  
  221.     BOOL GetPropTabStop(BOOL& v) {return GetProp(21,v);}
  222.     BOOL SetPropTabStop(BOOL v) {return SetProp(21,v);}
  223.  
  224.     BOOL GetPropEnabled(BOOL& v) {return GetProp(22,v);}
  225.     BOOL SetPropEnabled(BOOL v) {return SetProp(22,v);}
  226.  
  227.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(23,v);}
  228.     BOOL SetPropMousePointer(ENUM v) {return SetProp(23,v);}
  229.  
  230.     BOOL GetProphWnd(int& v) {return GetProp(24,v);}
  231.     BOOL SetProphWnd(int v) {return SetProp(24,v);}
  232.  
  233.     BOOL GetPropInactiveTextColor(COLORREF& v) {return GetProp(25,v);}
  234.     BOOL SetPropInactiveTextColor(COLORREF v) {return SetProp(25,v);}
  235.  
  236.     BOOL GetPropActiveTextColor(COLORREF& v) {return GetProp(26,v);}
  237.     BOOL SetPropActiveTextColor(COLORREF v) {return SetProp(26,v);}
  238.  
  239.     BOOL GetPropInactiveTabColor(COLORREF& v) {return GetProp(27,v);}
  240.     BOOL SetPropInactiveTabColor(COLORREF v) {return SetProp(27,v);}
  241.  
  242.     BOOL GetPropActiveTabColor(COLORREF& v) {return GetProp(28,v);}
  243.     BOOL SetPropActiveTabColor(COLORREF v) {return SetProp(28,v);}
  244.  
  245.     BOOL GetPropActiveTab(int& v) {return GetProp(29,v);}
  246.     BOOL SetPropActiveTab(int v) {return SetProp(29,v);}
  247.  
  248.     BOOL GetPropAbout(string& v) {return GetProp(30,v);}
  249.     BOOL SetPropAbout(string& v) {return SetProp(30,v);}
  250.  
  251. #if 0
  252.   DECLARE_RESPONSE_TABLE(TVbxSaxTab);
  253. #endif
  254. };
  255.  
  256. #if 0
  257. // OWL response table
  258. DEFINE_RESPONSE_TABLE1(TVbxSaxTab, TVbxControl)
  259.   EV_VBXEVENTINDEX( IDC_SaxTab, Event_SaxTab_Click, EvClick ),
  260.   EV_VBXEVENTINDEX( IDC_SaxTab, Event_SaxTab_DragDrop, EvDragDrop ),
  261.   EV_VBXEVENTINDEX( IDC_SaxTab, Event_SaxTab_DragOver, EvDragOver ),
  262. END_RESPONSE_TABLE;
  263. #endif
  264.  
  265. #endif
  266.  
  267.