TechTricks
Technical answers from the trenches 
 
 
 
 

     
   
Changing style sheets
 
   
by Lance Leonard 
 Posted: 19 July 2000
 
   
 
 Applies to: Paradox 5.0 and later.
 
   
 
Audience: Everyone
 
       
   

Question: How do I change a form's or report's style sheet?

Answer: The following steps describe how to do this:

  1. Open the form or report in a Design Window.
     
  2. Right-click the file's title bar and then choose the Style Sheet command from the shortcut menu. This displays the Style Sheet dialog, as shown in the following figure:
     
    The Paradox 9 Style Sheet dialog
     
  3. Choose a style sheet from the list, making sure to pick one that actually exists on the machine you're working on.
     
  4. Accept the new style sheet by choosing OK.
     
  5. Save your file before closing it.
Notes:

1. Step 5 is critical. Unlike other modifications, changing a style sheet does not "dirty" (flag as changed) a form or report. This means that if you close the file before saving it, the new style sheet reference will not be in place the next time you use the file. In turn, this means the problem that required the change will still exist.

2. You can also open the style sheet dialog from the main Paradox menu, though the specific command depends on the version of Paradox you're using. The following table shows the commands for the Paradox versions available at the time this was last modified:

Version Menu Command
Paradox 8 and 9 Format | Style Sheet
Paradox 7.32 Form (or Report) | Style Sheet
Paradox 5.0 and 7.16 Properties | Form | Style Sheet

3. To determine where a 32-bit version of Paradox thinks the style sheets are located, check the values of the following Registry settings:

   Pdoxwin\Designer\ProtoFile     ; default form style sheet
   Pdoxwin\Designer\ProtoFilePrt  ; default report style sheet

The path to these settings depends on your version of Paradox. For example, Paradox 9 stores these in:

   HKEY_CURRENT_USER\Software\Corel\Paradox\9.0

Other 32-bit versions use similar locations appropriate for the publisher and version number.

4. Users of 16-bit versions of Paradox can discover the style sheet locations by checking the [Designer] section of the PDOXWIN.INI file in their WINDOWS\ directory.

Related Information:

 

       

Top

Feedback About Paradox Delphi Assorted Web Stuff
 
 
Copyright © 2000-2004, techtricks.com; All Rights Reserved.
Acknowledgements, Disclaimers, Terms and Conditions.
Article last updated on 31 May 2003

 

Other Sites: Paradox, Delphi, Perl, Web Stuff, and More


 

[- End -]