Borland Online And The Cobb Group Present:


April, 1994 - Vol. 1 No. 4

Creating composite style sheets

The style sheets that come with Borland C++ 4.0 provide a great deal of flexibility when you're setting groups of compiler options. However, if you want to use regularly a set of options Borland hasn't defined, you can create a style sheet yourself.

You can define two basic types of style sheets: composite and user. Since it's a little easier to create composite style sheets, let's look at them first. In a future issue, we'll show you how to create user style sheets­­style sheets that contain only the compiler options that you select.

Composite style sheets

A composite style sheet is simply two or more existing style sheets merged together and given a unique name. To begin creating a composite style sheet, open the Node Attributes dialog box for any node in the current Project window.

To open the Style Sheets dialog box, click the Styles button in the Style Sheets group. When the dialog box appears, you'll see a summary of the existing style sheets, as shown in Figure A.

Figure A - You can create composite or user style sheets from the Style Sheets dialog box.

Create a new style sheet by clicking the Create... button. In the Create Style Sheet dialog box, enter a name for your composite style sheet and then click OK.

Now click the Composite... button in the Style Sheets dialog box. This displays the Compose Style Sheet dialog box. To add an existing style sheet's options to your new composite style sheet, double-click on the name of the style sheet in the Available Style Sheets list box to add it to the Composite Style Sheets list box.

When you finish adding other style sheets to your new composite style sheet, click OK. Figure B shows the Compose Style Sheet dialog box after we added the options from the Debug Info (Full) and the Optimized (Speed) style sheets.

Figure B - You can add any of the compiler options from existing style sheets to a composite style sheet.


Return to the Borland C++ Developer's Journal index

Subscribe to the Borland C++ Developer's Journal


Copyright (c) 1996 The Cobb Group, a division of Ziff-Davis Publishing Company. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff-Davis Publishing Company is prohibited. The Cobb Group and The Cobb Group logo are trademarks of Ziff-Davis Publishing Company.