RAD Studio for Microsoft .NET |  |

VCL for .NET Procedures
Collapse All

This section provides how-to information on developing VCL for .NET applications.

Topics

Name | Description
Building VCL Forms Applications With Graphics | Each of the procedures listed below builds a VCL Form application that uses graphics. Build one or more of the examples. Draw straight lines. Draw rectangles and ellipses. Draw a polygon. Display a bitmap image. Place a bitmap in a combo box.
Building a VCL.NET Forms ADO.NET Database Application | The following procedure describes how to build an ADO.NET database application. Building a VCL.NET ADO.NET application consists of the following major steps: Set up the database connection. Set up the dataset. Set up the data provider, client dataset, and data source. Connect a DataGrid to the connection components. Run the application.
Building a VCL Forms Application | The following procedure illustrates the essential steps to building a VCL Forms application using RAD Studio.
Creating Actions in a VCL Forms Application | Using RAD Studio, the following procedures illustrate how to create actions using the ActionList tool. You will set up a simple application and create an edit menu with cut and paste actions that can be used to cut and paste to a memo. Creating the VCL application consists of the following major steps: Add main menu, actionlist, and memo tools to a form. Create the cut and paste actions. Add the actions to the main menu and associate with the edit action category. Build and run the application.
Building a VCL Forms Hello World Application | The Windows Forms Hello World application demonstrates the essential steps for creating a VCL Forms application. The application uses a VCL Form, a control, an event, and displays a dialog in response to a user action. Creating the Hello World application consists of the following steps: Create a VCL.NET Form with a button control. Write the code to display "Hello World" when the button is clicked. Run the application.
Using ActionManager to Create Actions in a VCL Forms Application | Using RAD Studio, the following procedure illustrates how to create actions using ActionManager. It sets up a simple user interface with a text area, as would be appropriate for a text editing application, and describes how to create a file menu item with a file open action. Building the VCL application with ActionManager actions consists of the following major steps: Add a file open action to the ActionManager on a form. Create the main menu. Add the action to the menu. Build and run the application.
Building a VCL Forms dbExpress.NET Database Application | The following procedures describe how to build a dbExpress database application. Building a VCL Forms dbExpress.NET application consists of the following major steps: Set up the database connection. Set up the unidirectional dataset. Set up the data provider, client dataset, and data source. Connect a DataGrid to the connection components. Run the application.
Building an Application with XML Components | This example creates a VCL Forms application that uses an XMLDocument component to display contents in an XML file.
Making Changes Required Due to 64-bit .NET 2.0 Support | Changes have been made to support 64-bit .NET 2.0. These changes might require minor code changes so that existing applications work correctly. This document describes these changes in detail. There are two general areas: Changed code patterns Windows API declarations for some callbacks and records Warning: These changes are required due to changes made to support 64-bit systems. They must be made for applications intended for both 32-bit and 64-bit systems.
Creating a New VCL.NET Component | You can use the New VCL Component wizard to create a new VCL.NET component and add it to the Tool Palette.
Displaying a Bitmap Image in a VCL Forms Application | These procedures load a bitmap image from a file and displays it to a VCL form. Create a VCL form with a button control. Provide a bitmap image. Code the button's onClick event handler to load and display a bitmap image. Build and run the application.
Drawing Rectangles and Ellipses in a VCL Forms Application | These procedures draw a rectangle and ellipse in a VCL form. Create a VCL form. Code the form's OnPaint event handler to draw a rectangle and ellipse. Build and run the application.
Drawing a Rounded Rectangle in a VCL Forms Application | These procedures draw a rounded rectangle in a VCL form. Create a VCL form. Code the form's OnPaint event handler to draw a polygon. Build and run the application.
Drawing Straight Lines In a VCL Forms Application | These procedures draw two diagonal straight lines on an image in a VCL form. Create a VCL form. Code the form's OnPaint event handler to draw the straight lines. Build and run the application.
Placing a Bitmap Image in a Control in a VCL Forms Application | These procedures add a bitmap image to a combo box in a VCL forms application. Create a VCL form. Place components on the form. Set component properties in the Object Inspector. Write event handlers for the component's drawing action. Build and run the application.
Importing .NET Controls to VCL.NET | You might want to use .NET components on your VCL.NET forms. There is no direct way to use .NET components. You can, however, wrap the components in an ActiveX wrapper, which then can be added to your VCL.NET application. RAD Studio provides the .NET Import Wizard to accomplish this task.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!