home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------
- // SAXTABS1.H generated from SAXTABS.VBX by
- // VbxGen 1.0 - Borland International
- //--------------------------------------------------------
-
- #ifdef __OWL_OWLDEFS_H
- #include <owl\vbxctl.h>
- #endif
-
- //--------------------------------------------------------
- // SaxTab (VB1)
- //--------------------------------------------------------
-
- // properties
- #define Prop_SaxTab_CtlName 0
- #define Prop_SaxTab_Index 1
- #define Prop_SaxTab_BackColor 2
- #define Prop_SaxTab_Left 3
- #define Prop_SaxTab_Top 4
- #define Prop_SaxTab_Width 5
- #define Prop_SaxTab_Height 6
- #define Prop_SaxTab_Visible 7
- #define Prop_SaxTab_Parent 8
- #define Prop_SaxTab_DragMode 9
- #define Prop_SaxTab_DragIcon 10
- #define Prop_SaxTab_Tag 11
- #define Prop_SaxTab_Caption 12
- #define Prop_SaxTab_FontName 13
- #define Prop_SaxTab_FontBold 14
- #define Prop_SaxTab_FontItalic 15
- #define Prop_SaxTab_FontStrikethru 16
- #define Prop_SaxTab_FontUnderline 17
- #define Prop_SaxTab_FontSize 18
- #define Prop_SaxTab_BorderStyle 19
- #define Prop_SaxTab_TabIndex 20
- #define Prop_SaxTab_TabStop 21
- #define Prop_SaxTab_Enabled 22
- #define Prop_SaxTab_MousePointer 23
- #define Prop_SaxTab_hWnd 24
- #define Prop_SaxTab_InactiveTextColor 25
- #define Prop_SaxTab_ActiveTextColor 26
- #define Prop_SaxTab_InactiveTabColor 27
- #define Prop_SaxTab_ActiveTabColor 28
- #define Prop_SaxTab_ActiveTab 29
- #define Prop_SaxTab_About 30
-
- // events
- #define Event_SaxTab_Click 0
- #define Event_SaxTab_DragDrop 1
- #define Event_SaxTab_DragOver 2
-
- // default form data
- //
- // Some VBX controls do not operate correctly when created without
- // a form file. This occurs when a program creates a control
- // dynamically rather than as part of a dialog resource. If this
- // control exhibits problems in this mode, try creating it with the
- // following form data:
- //
- // For OWL programs:
- //
- // TVbxSaxTab* c = new TVbxSaxTab(..., sizeof(SaxTabData), SaxTabData);
- //
- // For C/C++ programs:
- //
- // HFORMFILE file = VBXCreateFormFile(sizeof(SaxTabData), SaxTabData);
- // HCTL c = VBXCreate(..., file);
- // VBXDeleteFormFile(file);
- //
- // Note that the VBXGEN_DATA or SaxTab_DATA symbol must be
- // defined in order to use the default form data.
- //
- extern BYTE SaxTabData[112L];
- #if defined(VBXGEN_DATA) || defined(SaxTab_DATA)
- BYTE SaxTabData[112L]={
- 0x01,0x00,0x00,0x02,0xff,0xff,0xd7,0x00,
- 0x03,0x07,0xff,0xff,0x09,0x00,0x0b,0x00,
- 0x0c,0x06,0x53,0x61,0x78,0x54,0x61,0x62,
- 0x0d,0x40,0x01,0x07,0x00,0x00,0x00,0x00,
- 0x00,0xbc,0x02,0x00,0x00,0x00,0x00,0x01,
- 0x02,0x02,0x22,0x53,0x79,0x73,0x74,0x65,
- 0x6d,0x00,0x08,0x50,0x00,0x36,0x14,0x50,
- 0x00,0x36,0x14,0xaf,0x08,0x17,0x27,0x73,
- 0x19,0x67,0x08,0x50,0x00,0x36,0x14,0x64,
- 0x17,0xc4,0x1d,0x13,0x00,0x14,0x00,0x00,
- 0x15,0x00,0x00,0x16,0xff,0xff,0x17,0x00,
- 0x19,0x00,0x00,0x00,0x00,0x1a,0x00,0x00,
- 0x00,0x00,0x1b,0xc0,0xc0,0xc0,0x00,0x1c,
- 0xff,0xff,0xff,0x00,0x1d,0x00,0x00,0xff,
-
- };
- #endif
-
- #ifdef __OWL_VBXCTL_H
-
- // OWL class
- class TVbxSaxTab : public TVbxControl {
- public:
-
- // constructors
- TVbxSaxTab(TWindow* parent, int id, LPCSTR title,
- int x, int y, int w, int h,
- long initLen=0, void far* initData=0, TModule* module=0) :
- TVbxControl(parent, id, "SAXTABS.VBX", "SaxTab",
- title, x, y, w, h, initLen, initData, module) {}
-
- TVbxSaxTab(TWindow* parent, int resourceId, TModule* module=0) :
- TVbxControl(parent, resourceId, module) {}
-
- #if 0
- // event handlers
- void EvClick(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvDragDrop(VBXEVENT FAR*)
- {
- // Source As Control,X As Integer,Y As Integer
- }
-
- void EvDragOver(VBXEVENT FAR*)
- {
- // Source As Control,X As Integer,Y As Integer,State As Integer
- }
-
- #endif
-
- // enumerations
- enum { // values for property DragMode
- DragMode_0_Manual,
- DragMode_1_Automatic,
- };
-
- enum { // values for property BorderStyle
- BorderStyle_0_None,
- BorderStyle_1_Fixed_Single,
- };
-
- enum { // values for property MousePointer
- MousePointer_0_Default,
- MousePointer_1_Arrow,
- MousePointer_2_Cross,
- MousePointer_3_IBeam,
- MousePointer_4_Icon,
- MousePointer_5_Size,
- MousePointer_6_Size_NE_SW,
- MousePointer_7_Size_NS,
- MousePointer_8_Size_NW_SE,
- MousePointer_9_Size_WE,
- MousePointer_10_Up_Arrow,
- MousePointer_11_Hourglass,
- MousePointer_12_No_Drop,
- };
-
-
- // properties
- BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
- BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
-
- BOOL GetPropIndex(int& v) {return GetProp(1,v);}
- BOOL SetPropIndex(int v) {return SetProp(1,v);}
-
- BOOL GetPropBackColor(COLORREF& v) {return GetProp(2,v);}
- BOOL SetPropBackColor(COLORREF v) {return SetProp(2,v);}
-
- BOOL GetPropLeft(long& v) {return GetProp(3,v);}
- BOOL SetPropLeft(long v) {return SetProp(3,v);}
-
- BOOL GetPropTop(long& v) {return GetProp(4,v);}
- BOOL SetPropTop(long v) {return SetProp(4,v);}
-
- BOOL GetPropWidth(long& v) {return GetProp(5,v);}
- BOOL SetPropWidth(long v) {return SetProp(5,v);}
-
- BOOL GetPropHeight(long& v) {return GetProp(6,v);}
- BOOL SetPropHeight(long v) {return SetProp(6,v);}
-
- BOOL GetPropVisible(BOOL& v) {return GetProp(7,v);}
- BOOL SetPropVisible(BOOL v) {return SetProp(7,v);}
-
- BOOL GetPropParent(int& v) {return GetProp(8,v);}
- BOOL SetPropParent(int v) {return SetProp(8,v);}
-
- BOOL GetPropDragMode(ENUM& v) {return GetProp(9,v);}
- BOOL SetPropDragMode(ENUM v) {return SetProp(9,v);}
-
- BOOL GetPropDragIcon(HPIC& v) {return GetProp(10,v);}
- BOOL SetPropDragIcon(HPIC v) {return SetProp(10,v);}
-
- BOOL GetPropTag(string& v) {return GetProp(11,v);}
- BOOL SetPropTag(string& v) {return SetProp(11,v);}
-
- BOOL GetPropCaption(string& v) {return GetProp(12,v);}
- BOOL SetPropCaption(string& v) {return SetProp(12,v);}
-
- BOOL GetPropFontName(string& v) {return GetProp(13,v);}
- BOOL SetPropFontName(string& v) {return SetProp(13,v);}
-
- BOOL GetPropFontBold(BOOL& v) {return GetProp(14,v);}
- BOOL SetPropFontBold(BOOL v) {return SetProp(14,v);}
-
- BOOL GetPropFontItalic(BOOL& v) {return GetProp(15,v);}
- BOOL SetPropFontItalic(BOOL v) {return SetProp(15,v);}
-
- BOOL GetPropFontStrikethru(BOOL& v) {return GetProp(16,v);}
- BOOL SetPropFontStrikethru(BOOL v) {return SetProp(16,v);}
-
- BOOL GetPropFontUnderline(BOOL& v) {return GetProp(17,v);}
- BOOL SetPropFontUnderline(BOOL v) {return SetProp(17,v);}
-
- BOOL GetPropFontSize(float& v) {return GetProp(18,v);}
- BOOL SetPropFontSize(float v) {return SetProp(18,v);}
-
- BOOL GetPropBorderStyle(ENUM& v) {return GetProp(19,v);}
- BOOL SetPropBorderStyle(ENUM v) {return SetProp(19,v);}
-
- BOOL GetPropTabIndex(int& v) {return GetProp(20,v);}
- BOOL SetPropTabIndex(int v) {return SetProp(20,v);}
-
- BOOL GetPropTabStop(BOOL& v) {return GetProp(21,v);}
- BOOL SetPropTabStop(BOOL v) {return SetProp(21,v);}
-
- BOOL GetPropEnabled(BOOL& v) {return GetProp(22,v);}
- BOOL SetPropEnabled(BOOL v) {return SetProp(22,v);}
-
- BOOL GetPropMousePointer(ENUM& v) {return GetProp(23,v);}
- BOOL SetPropMousePointer(ENUM v) {return SetProp(23,v);}
-
- BOOL GetProphWnd(int& v) {return GetProp(24,v);}
- BOOL SetProphWnd(int v) {return SetProp(24,v);}
-
- BOOL GetPropInactiveTextColor(COLORREF& v) {return GetProp(25,v);}
- BOOL SetPropInactiveTextColor(COLORREF v) {return SetProp(25,v);}
-
- BOOL GetPropActiveTextColor(COLORREF& v) {return GetProp(26,v);}
- BOOL SetPropActiveTextColor(COLORREF v) {return SetProp(26,v);}
-
- BOOL GetPropInactiveTabColor(COLORREF& v) {return GetProp(27,v);}
- BOOL SetPropInactiveTabColor(COLORREF v) {return SetProp(27,v);}
-
- BOOL GetPropActiveTabColor(COLORREF& v) {return GetProp(28,v);}
- BOOL SetPropActiveTabColor(COLORREF v) {return SetProp(28,v);}
-
- BOOL GetPropActiveTab(int& v) {return GetProp(29,v);}
- BOOL SetPropActiveTab(int v) {return SetProp(29,v);}
-
- BOOL GetPropAbout(string& v) {return GetProp(30,v);}
- BOOL SetPropAbout(string& v) {return SetProp(30,v);}
-
- #if 0
- DECLARE_RESPONSE_TABLE(TVbxSaxTab);
- #endif
- };
-
- #if 0
- // OWL response table
- DEFINE_RESPONSE_TABLE1(TVbxSaxTab, TVbxControl)
- EV_VBXEVENTINDEX( IDC_SaxTab, Event_SaxTab_Click, EvClick ),
- EV_VBXEVENTINDEX( IDC_SaxTab, Event_SaxTab_DragDrop, EvDragDrop ),
- EV_VBXEVENTINDEX( IDC_SaxTab, Event_SaxTab_DragOver, EvDragOver ),
- END_RESPONSE_TABLE;
- #endif
-
- #endif
-
-