home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------
- // PIDOC1.H generated from PIDOC.VBX by
- // VbxGen 1.0 - Borland International
- //--------------------------------------------------------
-
- #ifdef __OWL_OWLDEFS_H
- #include <owl\vbxctl.h>
- #endif
-
- //--------------------------------------------------------
- // PI_DocEdit (VB1)
- //--------------------------------------------------------
-
- // properties
- #define Prop_PI_DocEdit_CtlName 0
- #define Prop_PI_DocEdit_Parent 1
- #define Prop_PI_DocEdit_Left 2
- #define Prop_PI_DocEdit_Top 3
- #define Prop_PI_DocEdit_Width 4
- #define Prop_PI_DocEdit_Height 5
- #define Prop_PI_DocEdit_Enabled 6
- #define Prop_PI_DocEdit_Visible 7
- #define Prop_PI_DocEdit_Caption 8
- #define Prop_PI_DocEdit_Action 9
- #define Prop_PI_DocEdit_RTFText 10
- #define Prop_PI_DocEdit_FontFace 11
- #define Prop_PI_DocEdit_FontSize 12
- #define Prop_PI_DocEdit_CharStyle 13
-
- // events
- #define Event_PI_DocEdit_Click 0
- #define Event_PI_DocEdit_DblClick 1
- #define Event_PI_DocEdit_MouseDown 2
- #define Event_PI_DocEdit_MouseMove 3
- #define Event_PI_DocEdit_MouseUp 4
- #define Event_PI_DocEdit_GotFocus 5
- #define Event_PI_DocEdit_KeyDown 6
- #define Event_PI_DocEdit_KeyPress 7
- #define Event_PI_DocEdit_KeyUp 8
- #define Event_PI_DocEdit_LostFocus 9
-
- // 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:
- //
- // TVbxPI_DocEdit* c = new TVbxPI_DocEdit(..., sizeof(PI_DocEditData), PI_DocEditData);
- //
- // For C/C++ programs:
- //
- // HFORMFILE file = VBXCreateFormFile(sizeof(PI_DocEditData), PI_DocEditData);
- // HCTL c = VBXCreate(..., file);
- // VBXDeleteFormFile(file);
- //
- // Note that the VBXGEN_DATA or PI_DocEdit_DATA symbol must be
- // defined in order to use the default form data.
- //
- extern BYTE PI_DocEditData[20L];
- #if defined(VBXGEN_DATA) || defined(PI_DocEdit_DATA)
- BYTE PI_DocEditData[20L]={
- 0x02,0x06,0xff,0xff,0x07,0xff,0xff,0x08,
- 0x0a,0x50,0x49,0x5f,0x44,0x6f,0x63,0x45,
- 0x64,0x69,0x74,0xff,
- };
- #endif
-
- #ifdef __OWL_VBXCTL_H
-
- // OWL class
- class TVbxPI_DocEdit : public TVbxControl {
- public:
-
- // constructors
- TVbxPI_DocEdit(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, "PIDOC.VBX", "PI_DocEdit",
- title, x, y, w, h, initLen, initData, module) {}
-
- TVbxPI_DocEdit(TWindow* parent, int resourceId, TModule* module=0) :
- TVbxControl(parent, resourceId, module) {}
-
- #if 0
- // event handlers
- void EvClick(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvDblClick(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvMouseDown(VBXEVENT FAR*)
- {
- // Button As Integer,Shift As Integer,X As Integer,Y As Integer
- }
-
- void EvMouseMove(VBXEVENT FAR*)
- {
- // Button As Integer,Shift As Integer,X As Integer,Y As Integer
- }
-
- void EvMouseUp(VBXEVENT FAR*)
- {
- // Button As Integer,Shift As Integer,X As Integer,Y As Integer
- }
-
- void EvGotFocus(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvKeyDown(VBXEVENT FAR*)
- {
- // KeyCode As Integer,Shift As Integer
- }
-
- void EvKeyPress(VBXEVENT FAR*)
- {
- // KeyAscii As Integer
- }
-
- void EvKeyUp(VBXEVENT FAR*)
- {
- // KeyCode As Integer,Shift As Integer
- }
-
- void EvLostFocus(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- #endif
-
- // enumerations
- enum { // values for property Action
- Action_None,
- Action_Open,
- Action_Save,
- Action_Save_As,
- Action_Print,
- Action_Cut,
- Action_Copy,
- Action_Paste,
- Action_Clear,
- Action_SelectAll,
- };
-
-
- // properties
- BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
- BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
-
- BOOL GetPropParent(int& v) {return GetProp(1,v);}
- BOOL SetPropParent(int v) {return SetProp(1,v);}
-
- BOOL GetPropLeft(long& v) {return GetProp(2,v);}
- BOOL SetPropLeft(long v) {return SetProp(2,v);}
-
- BOOL GetPropTop(long& v) {return GetProp(3,v);}
- BOOL SetPropTop(long v) {return SetProp(3,v);}
-
- BOOL GetPropWidth(long& v) {return GetProp(4,v);}
- BOOL SetPropWidth(long v) {return SetProp(4,v);}
-
- BOOL GetPropHeight(long& v) {return GetProp(5,v);}
- BOOL SetPropHeight(long v) {return SetProp(5,v);}
-
- BOOL GetPropEnabled(BOOL& v) {return GetProp(6,v);}
- BOOL SetPropEnabled(BOOL v) {return SetProp(6,v);}
-
- BOOL GetPropVisible(BOOL& v) {return GetProp(7,v);}
- BOOL SetPropVisible(BOOL v) {return SetProp(7,v);}
-
- BOOL GetPropCaption(string& v) {return GetProp(8,v);}
- BOOL SetPropCaption(string& v) {return SetProp(8,v);}
-
- BOOL GetPropAction(ENUM& v) {return GetProp(9,v);}
- BOOL SetPropAction(ENUM v) {return SetProp(9,v);}
-
- BOOL GetPropRTFText(string& v) {return GetProp(10,v);}
- BOOL SetPropRTFText(string& v) {return SetProp(10,v);}
-
- BOOL GetPropFontFace(string& v) {return GetProp(11,v);}
- BOOL SetPropFontFace(string& v) {return SetProp(11,v);}
-
- BOOL GetPropFontSize(int& v) {return GetProp(12,v);}
- BOOL SetPropFontSize(int v) {return SetProp(12,v);}
-
- BOOL GetPropCharStyle(int& v) {return GetProp(13,v);}
- BOOL SetPropCharStyle(int v) {return SetProp(13,v);}
-
- #if 0
- DECLARE_RESPONSE_TABLE(TVbxPI_DocEdit);
- #endif
- };
-
- #if 0
- // OWL response table
- DEFINE_RESPONSE_TABLE1(TVbxPI_DocEdit, TVbxControl)
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_Click, EvClick ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_DblClick, EvDblClick ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_MouseDown, EvMouseDown ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_MouseMove, EvMouseMove ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_MouseUp, EvMouseUp ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_GotFocus, EvGotFocus ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_KeyDown, EvKeyDown ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_KeyPress, EvKeyPress ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_KeyUp, EvKeyUp ),
- EV_VBXEVENTINDEX( IDC_PI_DocEdit, Event_PI_DocEdit_LostFocus, EvLostFocus ),
- END_RESPONSE_TABLE;
- #endif
-
- #endif
-
-