Имя: Пароль:
1C
 
НЕмного оффтопик: как просмотреть методы ActiveX?
Ø
0 UnLeaded
 
13.11.00
12:18
есть файлик .ocx - чем его можно просмотреть на предмет методов (типа libview.exe для файлов .lib) ?
1 bird
 
13.11.00
14:51
Я бы сунул его на форму в VB или Access (Excel), а там - Object Browser
2 Rom
 
13.11.00
16:23
Дэлфи тоже позволяет так просмотреть.
3 UnLeaded
 
13.11.00
16:46
Сенкс... Вот еще бы передать ему контекст формы 1С... тобиш привязать к определенному окну
4 Dich
 
13.11.00
16:54
Да, вот до чего доводит человека страсть к гридам... :)))) Недели три уже, а, Unleaded?
5 UnLeaded
 
13.11.00
17:05
(4) Да я немного к ним охладел но когда увидел вот это:
  ' open ADO recordset: CUSTOMERS, adLockOptimistic
  g_Conn = CreateObject("ADODB.Connection")
  g_Conn.Open "NorthWind"
  g_RS = CreateObject("ADODB.Recordset")
  g_RS.Open "Customers", g_Conn, 1, 3 ' adOpenKeyset, adLockOptimistic
  g_RS.Requery
  ' bind recordsets to grids
  fg.DataSource = g_RS
  fg.FrozenCols = 1 ' freeze CustomerID column
  // fg - энто и есть грид...
...
!!! у меня "немножко" холодный пот на лбу выступил ;-)
6 bird
 
13.11.00
17:48
Так в чем проблемы то?
7 UnLeaded
 
13.11.00
18:07
(6)Привязать актив-х к экранной форме 1С...
8 Dich
 
13.11.00
18:14
Н-да, проблемы у тебя... Пиши отдельную форму, оформляй ее внешней компонентой... и дальше по тексту.
9 UnLeaded
 
13.11.00
18:18
Придется :-(
10 Начинающий
 
14.11.00
09:06
к 5.
А где увидел?
11 UnLeaded
 
14.11.00
09:06
(10) В примерах к гриду...
12 Начинающий
 
14.11.00
10:11
(11)А можно чуть подробнее, где этом самый пример,где этот объект?
В VB? или где?
13 UnLeaded
 
14.11.00
13:10
2Начинающий: положи мыло отправлю...
14 UnLeaded
 
14.11.00
13:18
2Начинающий: или качай отсюда - http://www.shersoft.com/ (триал)
15 Начинающий
 
15.11.00
10:13
to 14
Спасибо.
Жаль тебе пока ничем помочь не могу.
16 Начинающий
 
15.11.00
10:32
Хотя с другой стороны в VB есть MSFlexGrid и MSHFlexGrid
The Microsoft Hierarchical FlexGrid (MSHFlexGrid) control displays and operates on tabular data. It allows complete flexibility to sort, merge, and format tables containing strings and pictures. When bound to a data control, MSHFlexGrid displays read-only data.
Syntax
MSHFlexGrid
Remarks
You can place text, a picture, or both in any cell of an MSHFlexGrid. The Row and Col properties specify the current cell in an MSHFlexGrid. You can specify the current cell using code, or the user can change it atrun time using the mouse or the arrow keys. The Text property references the contents of the current cell.
If the text in a cell is too long to display in the cell, and the WordWrap property is set to True, the text wraps to the next line within the same cell. To display the wrapped text, you may need to increase the cell’s column width (ColWidth property) or row height (RowHeight property).
Use the Col and Row properties to determine the number of columns and rows in an MSHFlexGrid. Use the Band properties to determine the band styles in an MSHFlexGrid.
Displaying Hierarchical Recordsets
A major feature of the MSHFlexGrid control is its ability to display hierarchical recordsets—relational tables displayed in a hierarchical fashion. The easiest way to create a hierarchical recordset is to use the Data Environment designer and assign the DataSource property of the MSHFlexGrid control to the Data Environment. You can also create a hierarchical recordset in code using a Shape command as the RecordSource for an ADO Data Control, as shown in the example below:
' Create a ConnectionString.
Dim strCn As String
strCn = "Provider=MSDataShape.1;Data Source=Nwind;" & _
"Connect Timeout=15;Data Provider=MSDASQL"
' Create a Shape command.
Dim strSh As String
strSh = "SHAPE {SELECT * FROM 'Customers'} AS Customers " & _
"APPEND ({SELECT * FROM 'Orders'} AS Orders RELATE " & _
"CustomerID TO CustomerID) AS Orders"
' Assign the ConnectionString to an ADO Data Control's
' ConnectionString property, and the Shape command to the
' control's RecordSource property.
With Adodc1
   .ConnectionString = strCn
   .RecordSource = strSh
End With
' Set the HflexGrid control's DataSource property to the
' ADO Data control.
Set HFlexGrid1.DataSource = Adodc1
For More Information To find out more about hierarchical recordsets, seeHierarchical Cursors and Data Shaping Summary. A description of Shape commands can also be found inShape Commands in General.
Note Before you can use an MSHFlexGrid in your application, you must add the MSHFlxGd.ocx file to your project.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^