Главная страница | назад





Article #25621: How to create an About Box in Delphi or C++ Builder

Problem:
What are the steps to create an about box?
Solution:
Go to the Main Menu
Click on File | New Form
Go to the Object Inspector
Click on the Name property & Type: AboutBox
Click on the Caption property & Type: About This Program
Click on the BorderStyle property and select bsDialog
ADD 3 TEXT LABELS
Click on the Standard Tab
*PROGRAM NAME
Click on the Label (giant A in your component palette) and place it on your form.
Go to the Object Inspector
Click on the Caption property & Type: The name of your program
*VERSION
Click on the Label (giant A in your component palette) and place it on your form.
Go to the Object Inspector
Click on the Caption property & Type: The Version of your program
*COPYRIGHT STATEMENT
Click on the Label (giant A in your component palette) and place it on your form.
Go to the Object Inspector
Click on the Caption property & Type: Your copyright statement
(To type the ? hold down the ALT KEY and type: 0169 and release the ALT KEY)
CREATE ICON
Click on the Additional Tab in the Component Palette
Click on the Image Button (Light Blue Horizon picture) and place it on the left side of your form
(You should see an empty square on your form at this point)
Go to Object Inspector
Click on AutoSize property and change it to True
Click on: Picture property
Double click: the Value column.- The Picture Editor dialog box is displayed
Click: Load button
Navigate to: Common Files | Borland Shared | Images | Icons & select an icon
Click: OK
*OK BUTTON
Click on the Additional Tab in the Component Palette
Click on the OK Button & place near the bottom of your form
Go to Object Inspector
Click on Kind — Change to bkok
*BEVEL FRAME
Click on the Additional Tab in the Component Palette
Click on the Bevel Button and carefully move to the form and drag it around the 3 text lines & release
Go to Object Inspector
Click on the Shape property and change to bsFrame. You now have a 3D frame.

Last Modified: 25-OCT-00