Wrappers for Visual Basic ActiveX controls

 

Please note that Microsoft ActiveX controls ships with Visual Studio 6.0 or later, so you must have a Visual Studio 6.0 or later license to redistribute them.

 

Disclaimer

 

This software and accompanying documentation are provided "as is" and without warranties as to performance or merchantability or any other warranties whether expressed or implied. Because of the various hardware and software environments into which this application may be used, no warranty of fitness for a particular purpose is offered. The user must assume the entire risk of using this software. In no case shall any of the contributors to this project be liable for any incidental, special or consequential damages or loss, including, without limitation, lost profits or the inability to use equipment or access data. This is true even if we are advised of the possibility of such damages. We also don't have any obligation of' fix eventual bugs or to add new features.

 

Search the WEB, MSDN or com.it-berater.org

Google

 

Web

www.com.it-berater.org

forum.it-berater.org

msdn2.microsoft.com

 

TB_MSBIND v.1.0.01 (Microsoft Data Binding Collection)

 

TB_MSBIND is an include file containing wrapper functions to allow you to use the Microsoft Data Binding Collection object in procedural form with PowerBASIC. This control allows to bind ActiveX controls with ADO recordsets.

 

The package includes an example with a Microsoft Masked Edit Control binded to a field of an Access database table using an ADO Data Control. All the additional libraries needed to compile and run the example are also included.

 

 

Also included in this version is TB_STDFMT.INC, an include file with wrapper functions for the Microsoft Data Formatting Object Library, and TB_STDFMT_EVENTS.INC, an include file with template code for events sink with the Data Formatting Object Library.

 

Documentation: Format Objects

Documentation: Data Sources, Data Sinks (article)

Download: MSBIND.CAB (cabinet file)

Download: MSSTDFMT.CAB (cabinet file)

Download: TB_MSBIND.ZIP (262 Kb) (26 Oct 2005)

 

 

TB_HFXGD v.1.0 (Microsoft Hierarchical Flex Grid)

 

 

The Hierarchical FlexGrid control displays tabular data. Unlike the DataGrid, it is strictly read-only. However, it can sort, merge, and format tables containing strings and pictures. Additionally, the Hierarchical FlexGrid differs from its predecessor, the FlexGrid, in that it can display both summary data and detail data.

 

A hierarchical rowset is required to display summary-detail information in the Hierarchical FlexGrid control. To create a hierarchical rowset for this control, the Microsoft Data Shape Provider is required in combination with the ADO data control.

 

TB_HFXGD is a library of wrapper functions that allow you to use this control in procedural form with PowerBASIC. The package includes examples that create a grid control in a DDT dialog using ATL71.DLL as the ActiveX container and binds a recordset to the grid (both using ADO and ADODC). There are also examples that use the DataShape Provider to create an hierarchical rowset. To compile and run the examples you will also need to download TB_ADO28.ZIP, TB_ADODC.ZIP and NWIND.ZIP.

 

Download: MSHFLXGD.CAB (cabinet file)

Download: TB_HFXGD.ZIP (142 Kb) (26 Oct 2005)

Download: NWIND.ZIP (768 Kb) (Northwind database)

 

 

TB_FXGRD v.1.0 (Microsoft Flex Grid)

 

 

The Microsoft FlexGrid (MSFlexGrid) control displays and operates on tabular data. It allows complete flexibility to sort, merge, and format tables containing strings and pictures.

 

You can put text, a picture, or both, in any cell of an MSFlexGrid. The Row and Col properties specify the current cell in an MSFlexGrid. You can specify the current cell in code, or the user can change it at run 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 cells column width (ColWidth property) or row height (RowHeight property).

 

TB_FXGRD is a library of wrapper functions that allow you to use this control in procedural form with PowerBASIC. The package includes an example that create a grid control in a DDT dialog using ATL71.DLL as the ActiveX container and shows how to set cell properties and how to load a recordset in the grid. It also includes template code to connect to the events fired by the control. To compile and run the examples you will also need to download TB_ADO28.ZIP, and NWIND.ZIP.

 

Download: MSFLXGRD.CAB (cabinet file)

Download: TB_FXGRD.ZIP (103 Kb) (26 Oct 2005)

Download: NWIND.ZIP (768 Kb) (Northwind database)

 

 

TB_DTLST v.1.0 (Microsoft DataList Controls)

 

 

The DataList control allows retrieved data to appear in a list box. The DataCombo control allows retrieved data to appear in a drop-down combo box.

 

TB_DTLST is a library of wrapper functions that allow you to use these controls in procedural form with PowerBASIC. The package includes examples that create a DataList/DataCombo control in a DDT dialog using ATL71.DLL as the ActiveX container and binds a recordset to the control (both using ADO and ADODC).  To compile and run the examples you will also need to download TB_ADO28.ZIP and TB_ADODC.ZIP.

 

Download: MSDATLST.CAB (cabinet file)

Download: TB_DTLST.ZIP (214 Kb) (26 Oct 2005)

 

 

TB_ADODC v.1.0 (Microsoft ADO Data Control)

 

 

The ADO Data control uses Microsoft ActiveX Data Objects (ADO) to quickly create connections between data-bound controls and data providers. Data-bound controls are any controls that feature a DataSource property. Data providers can be any source written to the OLE DB specification.

 

Although you can use the ActiveX Data Objects (ADO) directly in your applications, the ADO Data control has the advantage of being a graphic control (with Back and Forward buttons) and an easy-to-use interface that allows you to create database applications with a minimum of code.

 

Possible Uses

  • Connect to a local or remote database.

  • Open a specified database table or define a set of records based on a Structured Query Language (SQL) query or stored procedure or view of the tables in that database.

  • Pass data field values to data-bound controls, where you can display or change the values.

  • Add new records or update a database based on any changes you make to data displayed in the bound controls.

To create a client, or front-end database application, add the ADO Data control to your dialog. You can have as many ADO Data controls on your dialog as you need. Be aware, however, that the control is a comparatively "expensive" method of creating connections, using at least two connections for the first control, and one more for each subsequent control.

 

TB_ADODC is a library of wrapper functions to allow you to use the ADO Data Control in procedural form with PowerBASIC, using ATL71.DLL as the AxtiveX container. For examples, download the TB_HFXGD library (Microsoft Hierarchical Grid).

 

Documentation: Using the ADO Data Control

Download: MSADODC.CAB (cabinet file)

Download: TB_ADODC.ZIP (23 Kb) (26 Oct 2005)

 

 

TB_MSMSK v.1.0 (Microsoft Masked Edit Control)

 

 

The Masked Edit control provides restricted data input as well as formatted data output. This control supplies visual cues about the type of data being entered or displayed.

 

TB_MSMSK is a library of wrapper functions that allow you to use this control in procedural form with PowerBASIC. An example to show you how to create an instance of the control, set a mask and some properties and connect to the events fired by the control is provided.

 

Documentation: Controls reference (Visual Basic)

Download: MSMASK32.CAB (cabinet file)

Download: TB_MSMSK.ZIP (81 Kb) (26 Oct 2005)

 

 

TB_COMDLG v.1.0 (Microsoft Common Dialog Control)

 

The Common Dialog control provides a standard set of dialog boxes for operations such as opening and saving files, setting print options, and selecting colors and fonts. The control also has the ability to display help by running the Windows Help engine.

 

The Common Dialog control can display the following dialogs using the specified method.

 

Method

Dialog Displayed

ShowOpen

Show Open Dialog Box

ShowSave

Show Save As Dialog Box

ShowColor

Show Color Dialog Box

ShowFont

Show Font Dialog Box

ShowPrinter

Show Print or Print Options Dialog Box

ShowHelp

Invokes the Windows Help Engine

 

TB_COMDLG is a library of wrapper functions that allow you to use the Microsoft Common Dialog Control with PowerBASIC in procedural form. An example that demonstrates how to create an instance of the control and call the different dialogs is provided.

 

Documentation: Controls reference (Visual Basic)

Download: COMDLG32.CAB (cabinet file)

Download: TB_COMDLG.ZIP (24 Kb) (1 may 2005)

 

 

TB_MAPIC v.1.0 (Microsoft MAPI Controls)

 

Microsoft MAPI Controls (MSMAPI32.OCX) includes two MAPI controls, MAPISession and MAPIMessages.

 

The MAPISession control signs on and establishes a MAPI session. It is also used to sign off from a MAPI session. The MAPIMessages control allows the user to perform a variety of messaging system functions.

 

The MAPI controls are invisible at run time. In addition, there are no events for the controls. To use them, you must specify the appropriate methods.

 

TB_MAPIC is a library of wrapper functions that allow you to use the Microsoft MAPI Controls with the PowerBASIC compilers in procedural form.

 

Note   If you attempt to run a program that uses the MAPI controls, make sure that you have the 32-bit MAPI DLLs installed properly or you may not be able to perform simple MAPI functions such as SignOn.

 

Documentation: Controls reference (Visual Basic)

Documentation: Using the MAPI Controls (Visual Basic)

Download: MSMAPI32.CAB (cabinet file)

Download: TB_MAPIC.ZIP (29 Kb) (28 apr 2005)

 

 

TB_WINSK v. 1.0 (Microsoft Winsock Control)

 

The Winsock control, invisible to the user, provides easy access to TCP and UDP network services. It can be used by Microsoft Access, Visual Basic, Visual C++, or Visual FoxPro developers. To write client or server applications you do not need to understand the details of TCP or to call low level Winsock APIs. By setting properties and invoking methods of the control, you can easily connect to a remote machine and exchange data in both directions.

 

TCP Basics

 

The Transfer Control Protocol allows you to create and maintain a connection to a remote computer. Using the connection, both computers can stream data between themselves.

 

If you are creating a client application, you must know the server computer's name or IP address (RemoteHost property), as well as the port (RemotePort property) on which it will be "listening." Then invoke the Connect method.

 

If you are creating a server application, set a port (LocalPort property) on which to listen, and invoke the Listen method. When the client computer requests a connection, the ConnectionRequest event will occur. To complete the connection, invoke the Accept method within the ConnectionRequest event.

 

Once a connection has been made, either computer can send and receive data. To send data, invoke the SendData method. Whenever data is received, the DataArrival event occurs. Invoke the GetData method within the DataArrival event to retrieve the data.

 

UDP Basics

 

The User Datagram Protocol (UDP) is a connectionless protocol. Unlike TCP operations, computers do not establish a connection. Also, a UDP application can be either a client or a server.

 

To transmit data, first set the client computer's LocalPort property. The server computer then needs only to set the RemoteHost to the Internet address of the client computer, and the RemotePort property to the same port as the client computer's LocalPort property, and invoke the SendData method to begin sending messages. The client computer then uses the GetData method within the DataArrival event to retrieve the sent messages.

 

© 2005 Microsoft Corporation. All rights reserved.

 

TB_WINSK is a library of wrapper functions that allow you to use the Microsoft Winsock Control with PowerBASIC in procedural form. The package includes client and server examples, both using TCP and UDP, as well as a template with code to sink to the events fired by the control.

 

Documentation: Controls reference (Visual Basic)

Documentation: Using the Winsock Control (Visual Basic)

Download: MSWINSCK.CAB (cabinet file)

Download: TB_WINSK.ZIP (55 Kb) (26 Oct 2005)

 

 

TB_INET v.1.0 (Microsoft Internet Transfer Protocol)

 

The Internet Transfer control implements two widely-used Internet protocols: the HyperText Transfer Protocol (HTTP) and the File Transfer Protocol (FTP). Using the Internet Transfer control, you can connect to any site that uses one of these protocols, and retrieve files using either the OpenURL or Execute method.

 

Possible Uses

  • To add an FTP browser to any application.

  • To create an application that automatically downloads files from a public FTP site.

  • To parse a World Wide Web site for graphics references and download the graphics only.

  • To present a custom display of dynamic data retrieved from a Web page.

TB_INET is a library of wrapper functions that allow you to use the Microsoft Internet Transfer Control with the PowerBASIC compilers in procedural form. The package includes a couple of examples that demonstrate how to download a web page and a file using HTTP.

 

Documentation: Using the Internet Transfer Control (Visual Basic)

Documentation: Using the Internet Transfer Control (Visual Basic - Expert guide)

Download: MSINET.CAB (cabinet file)

Download: TB_INET.ZIP (20 Kb) (1 may 2005)

 

 

TB_MCI v.1.0 (Multimedia MCI Control)

 

The Multimedia MCI control manages the recording and playback of multimedia files on Media Control Interface (MCI) devices. Conceptually, this control is a set of push buttons that issues MCI commands to devices such as audio boards, MIDI sequencers, CD-ROM drives, audio CD players, videodisc players, and videotape recorders and players. The MCI control also supports the playback of Video for Windows (*.avi) files.

 

 

TC_MCI is a library of wrapper functions that allow you to use the Multimedia MCI Control with PowerBASIC in procedural form. The package includes an example that plays an audio file and demonstrates how to sink to the events fired by the control.

 

Documentation: Controls reference (Visual Basic)

Documentation: Using the Multimedia MCI Control (Visual Basic)

Download: MCI32.CAB (cabinet file)

Download: TB_MCI.ZIP (103 Kb) (26 Oct 2005)

 

 

TB_CHART v.1.0 (Microsoft Chart Control)

 

A chart that graphically displays data.

 

 

The MSChart control supports the following features:

  • True three-dimensional representation.

  • Support for all major chart types.

  • Data grid population via random data and data arrays.

The MSChart control is associated with a data grid (DataGrid object). This data grid is a table that holds the data being charted. The data grid can also include labels used to identify series and categories on the chart. The person who designs your chart application fills the data grid with information by inserting data or by importing data from a spreadsheet or array.

 

TB_CHART is a library of wrapper functions that allow you to use the Microsoft Chart Control with PowerBASIC in procedural form. A couple of examples show how to create an instance of the control using ATL71.DLL as the ActiveX container, how to use the main interfaces and how to set the data of the chart.

 

Documentation: MSChart Control (Visual Basic)

Documentation: Using the MSChart Control (Visual Basic)

Download: MSCHRT20.CAB (cabinet file)

Download: TB_CHART.ZIP (143 Kb) (26 Oct 2005)

 

Page last updated on Saturday, 06 May 2006 19:30:54 +0200