Summary

   

"Apps" Example Applications

A number of examples are found under the Examples/Apps folder where C++Builder is installed. These are identified and briefly described in Table A.6.

Table A.6. Apps Example Applications

Folder

Description

Autocon

Example of an OLE Automation Controller, which uses both VTable methods and Dispatch methods to access a COM object. Requires the automation server within the Autosrv folder to be registered (built and run) to execute. (See Figure A.4 for an illustration of this example.)

Autosrv

A simple COM Automation Server, which is used by the example Automation Controller provided within the Autocon folder. (See Figure A.4 for an illustration of this example.)

Figure A.4. Demonstration of COM automation using the AutoCon and Autosrv applications.

graphics/apafig04.gif

Canvas

Demonstrates the rotation of lines drawn on a canvas over time.

Colordlg

Demonstrates the use of the Color common dialog to change the color of a form.

Cursors

An example that demonstrates how to toggle the shape of a cursor.

Doodle

A doodle paint program. (See Figure A.5 for an illustration of this example.)

Figure A.5. The Doodle program.

graphics/apafig05.gif

FindRep

Demonstrates how to use the Find and Replace Dialogs within a RichEdit application.

Header

An example that uses a HeaderControl to resize the objects contained within each column.

ImageView

An example application used to navigate a hard disk to view image files (BMP, ICO, WMF, and EMF).

IpcDemos

Contains two applications, monitor and client , which demonstrate interprocess communication (IPC) in Win32. Communication is accomplished between these two applications using Threads, Events, Mutexes, and Shared memory.

MiniComp

Example of a small, nonvisual counter component.

MultiPag

A multipage dialog application that demonstrates the capabilities provided by a TPageControl .

OwnerList

This example provides a WYSIWG display of the fonts available on a system demonstrating how to create and use an owner drawn list box.

Printing

Demonstrates how to send text within a memo control to a printer. Uses TPrintDialog .

ProcView

An example that lists the processes that are running on a machine, and provides the capability to kill them. Uses the Win32 API: EnumWindows() , GetClassName() , GetWIndowText() , and TerminateProcess() .

RichEdit

A Rich Text word-processor example very similar to WordPad. Includes an English, French, and Dutch version. (See Figure A.6 for an illustration of this example.)

Figure A.6. The RichEdit word processor program.

graphics/apafig06.jpg

Scrollbar

Demonstrates the use of a ScrollBar control.

Switch

A simple example that demonstrates how to dynamically change event handlers at runtime.

SysSound

Enumerates the system sounds installed within Windows and demonstrates how to play them using the Win32 API MessageBeep() .

Tab

A multipage dialog application that demonstrates the capabilities provided by a TTabControl .

Threads

Demonstrates how to derive a class from TThread to perform three types of sorts: Bubble Sort, Selection Sort, and Quick Sort .

TrayIcon

Demonstrates how to place an active icon for an application in the system tray, and toggle the icon's state.

TwoForms

A simple application demonstrating how to instantiate and activate a second form on a button clicked from the main form.

Wpm

Example test application that measures the number of words per minute you can type.


   
Top


C++ Builder Developers Guide
C++Builder 5 Developers Guide
ISBN: 0672319721
EAN: 2147483647
Year: 2002
Pages: 253

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net