EuCOM Code
Brought to you by:
mattlewis
-- Wrapper for sgrid.ocx for EuCOM -- generated by Tbrowse.exw by Matt Lewis include eucom.ew global constant Sg_clsid = "8DE3D864-82EB-11D1-84CF-0020AF21289A", Sg_clsid_ix = add_clsid( Sg_clsid) , Sg_disp = add_iid( Sg_clsid_ix, IDispatch), Sg_IQuickActivate_ix = add_iid( Sg_clsid_ix, IQuickActivate ), Sg_IPersistStreamInit_ix = add_iid( Sg_clsid_ix, IPersistStreamInit ), Sg_IConnectionPointContainer_ix = add_iid( Sg_clsid_ix, IConnectionPointContainer ) --methods -- disp methods for Sg global constant Sg_m_AboutBox = -552, -- Returns: VT_VOID Sg_m_ClearAll = 25, -- Returns: VT_VOID Sg_m_ClearRange = 26, -- Returns: VT_VOID -- nRow1 VT_I4 [IN] -- nCol1 VT_I4 [IN] -- nRow2 VT_I4 [IN] -- nCol2 VT_I4 [IN] -- nClearType VT_I2 [IN] Sg_m_EditClear = 28, -- Returns: VT_VOID -- nClearType VT_I2 [IN] Sg_m_EditCopy = 29, -- Returns: VT_VOID Sg_m_EditCut = 30, -- Returns: VT_VOID Sg_m_EditDelete = 32, -- Returns: VT_VOID -- nShiftType VT_I2 [IN] Sg_m_EditPaste = 31, -- Returns: VT_VOID Sg_m_Format = 27, -- Returns: VT_VOID -- nRow1 VT_I4 [IN] -- nCol1 VT_I4 [IN] -- nRow2 VT_I4 [IN] -- nCol2 VT_I4 [IN] -- mask VT_I4 [IN] -- Format VT_I4 [IN] Sg_m_GetSelection = 35, -- Returns: VT_VOID -- nSelection VT_I2 [IN] -- pRow1 VT_I4 [OUT] -- pCol1 VT_I4 [OUT] -- pRow2 VT_I4 [OUT] -- pCol2 VT_I4 [OUT] Sg_m_GetTypeRC = 24, -- Returns: VT_VOID -- nRow VT_I4 [IN] -- nCol VT_I4 [IN] -- retval VT_I2 [OUT] Sg_m_Refresh = -550, -- Returns: VT_VOID Sg_m_Scale = 33, -- Returns: VT_VOID -- nRow1 VT_I4 [IN] -- nCol1 VT_I4 [IN] -- nRow2 VT_I4 [IN] -- nCol2 VT_I4 [IN] -- Scale VT_I2 [IN] Sg_m_SetColWidth = 23, -- Returns: VT_VOID -- nCol1 VT_I4 [IN] -- nCol2 VT_I4 [IN] -- nWidth VT_I4 [IN] -- bDefColWidth VT_I2 [IN] Sg_m_SetSelection = 34 -- Returns: VT_VOID -- nRow1 VT_I4 [IN] -- nCol1 VT_I4 [IN] -- nRow2 VT_I4 [IN] -- nCol2 VT_I4 [IN] --properties -- disp properties for Sg global constant Sg_p_AllColsText = 15, -- Property: VT_BSTR Sg_p_AllColsWidth = 16, -- Property: VT_BSTR Sg_p_AutoRecalc = 7, -- Property: VT_I2 Sg_p_BackColor = -501, -- Property: VT_UI4 Sg_p_bDisplay = 1, -- Property: VT_I2 Sg_p_Cancel = 2, -- Property: VT_I2 Sg_p_Col = 6, -- Property: VT_I4 Sg_p_ColText = 39, -- Property: VT_BSTR -- nCol VT_I4 [IN] Sg_p_Enabled = -514, -- Property: VT_I2 Sg_p_Font = -512, -- Property: Font Sg_p_ForeColor = -513, -- Property: VT_UI4 Sg_p_Formula = 10, -- Property: VT_BSTR Sg_p_FormulaRC = 38, -- Property: VT_BSTR -- nRow VT_I4 [IN] -- nCol VT_I4 [IN] Sg_p_HdrWidth = 13, -- Property: VT_I4 Sg_p_LastCol = 17, -- Property: VT_I4 Sg_p_LastRow = 18, -- Property: VT_I4 Sg_p_LeftCol = 20, -- Property: VT_I4 Sg_p_MaxHorizOfs = 22, -- Property: VT_I4 Sg_p_MaxVertOfs = 21, -- Property: VT_I4 Sg_p_Modified = 8, -- Property: VT_I2 Sg_p_NColumns = 11, -- Property: VT_I4 Sg_p_NRows = 12, -- Property: VT_I4 Sg_p_Number = 9, -- Property: VT_R8 Sg_p_NumberRC = 36, -- Property: VT_R8 -- nRow VT_I4 [IN] -- nCol VT_I4 [IN] Sg_p_ReadOnly = 3, -- Property: VT_I2 Sg_p_ReadyState = -525, -- Property: VT_I4 Sg_p_Row = 5, -- Property: VT_I4 Sg_p_SeparatorColor = 4, -- Property: VT_UI4 Sg_p_Text = -517, -- Property: VT_BSTR Sg_p_TextRC = 37, -- Property: VT_BSTR -- nRow VT_I4 [IN] -- nCol VT_I4 [IN] Sg_p_TopRow = 19, -- Property: VT_I4 Sg_p_URL = 14 -- Property: VT_BSTR -- Default event interface for Sg -- Default event interface for Sg global constant DSgEvents = "8DE3D863-82EB-11D1-84CF-0020AF21289A", DSgEvents_Error = -608, DSgEvents_Click = -600, DSgEvents_DblClick = -601, DSgEvents_MouseDown = -605, DSgEvents_MouseUp = -607, DSgEvents_EndEdit = 1, DSgEvents_Modified = 2, DSgEvents_ReadyStateChange = -609, DSgEvents_TopLeftChanged = 3 -- Event functions for DSgEvents procedure DSgEvents_Error_proc( atom this, atom Number, atom Description, atom Scode, atom Source, atom HelpFile, atom HelpContext, atom CancelDisplay ) end procedure procedure DSgEvents_Click_proc( atom this ) end procedure procedure DSgEvents_DblClick_proc( atom this ) end procedure procedure DSgEvents_MouseDown_proc( atom this, atom Button, atom Shift, atom x, atom y ) end procedure procedure DSgEvents_MouseUp_proc( atom this, atom Button, atom Shift, atom x, atom y ) end procedure procedure DSgEvents_EndEdit_proc( atom this, atom EditString, atom Cancel ) end procedure procedure DSgEvents_Modified_proc( atom this ) end procedure procedure DSgEvents_ReadyStateChange_proc( atom this ) end procedure procedure DSgEvents_TopLeftChanged_proc( atom this ) end procedure reg_com_eventsink( Sg_clsid_ix, DSgEvents, { routine_id( "DSgEvents_Error_proc" ), routine_id( "DSgEvents_Click_proc" ), routine_id( "DSgEvents_DblClick_proc" ), routine_id( "DSgEvents_MouseDown_proc" ), routine_id( "DSgEvents_MouseUp_proc" ), routine_id( "DSgEvents_EndEdit_proc" ), routine_id( "DSgEvents_Modified_proc" ), routine_id( "DSgEvents_ReadyStateChange_proc" ), routine_id( "DSgEvents_TopLeftChanged_proc" ) }, { -608, -600, -601, -605, -607, 1, 2, -609, 3} )