Customizing Paradox

You can redesign your workspace to improve the functionality of and accessibility to the commands, tools, and features you use most often.

In this section, you'll learn about

  making changes to the Paradox desktop
  
  customizing toolbars
  
  adjusting Help window settings
  
  choosing startup preferences
  
  adjusting screen refresh and retry settings
  
  setting character entry preferences
  
  specifying working and private directories
  
  creating, modifying, and removing aliases
  
Making changes to the Paradox desktop

You can change the look of the Paradox desktop by changing the default font used by text objects, for example, the font applied to the text in a table. You can also add a bitmapped image to the Paradox window background and change the title displayed on the title bar. Saving the settings applies them the next time you launch Paradox.

To change the font for text objects

1	Click Tools  Settings  Preferences.

2	Click the General tab.

3	In the Default font area, click the Change button.

4	Choose a font from the Font list.

If you want to change the language script, choose a font script from the Script list box.

To add a bitmapped image on the Paradox window background

1	Click Tools  Settings  Preferences.

2	Click the General tab.

3	Click Browse.

4	Choose the drive and folder where the image is stored.

5	Double-click a file name.

6	Enable one of the following options:

  Tile bitmap-repeats the image until it fills the Paradox window
  
  Center bitmap-displays the image in the center of the Paradox window
  
To change the title on the title bar

1	Click Tools  Settings  Preferences.

2	Click the General tab.

3	Type a title in the Title box.

To save window size and settings

1	Click Tools  Settings  Preferences.

2	Click the General tab.

3	Enable the Save on exit check box.

Customizing toolbars

You can customize the toolbars to help you read and access commands. For example, you can change the appearance of a toolbar by adjusting the size of its buttons and borders and by having toolbar buttons display as text, images, or a combination of text and images.

You can also create toolbars. You can modify toolbars by adding and deleting buttons. If you've made changes to toolbars, you can restore their original settings.

To change the appearance of a toolbar

1	Click View  Toolbars.

2	Click Options.

3	Move the Button slider to adjust the size of the toolbar buttons.

4	Move the Border slider to adjust the size of the toolbar borders.

You can also	

Specify that buttons display as images on toolbars	Enable the Image only option.

Specify that buttons display as text on toolbars	Enable the Text only option.

Specify that buttons display as images and text on toolbars 	Enable the Text below image option.

To create a toolbar

1	Click View  Toolbars.

2	Click New.

3	Type a name for the toolbar in the Toolbars list.

You can also	

Delete a toolbar	Choose a toolbar from the Toolbars list and click Delete.

Rename a toolbar	Choose a toolbar from the Toolbars list. Right-click, click Rename, and type a name in the text box.

Note

  You can only delete and rename the toolbars you create. You cannot delete or rename the Paradox default toolbars.
  
To add a button to a toolbar

1	Click View  Toolbars.

2	Click Customize.

3	Choose a toolbar from the Property Bars list box.

4	In the Command categories list, click a category, and click a command.

The button assigned to the command is displayed with a gray border.

5	Drag the button to a toolbar in the Paradox window.

To delete a button from a toolbar

1	Click View  Toolbars.

2	Click Customize.

3	Choose a toolbar from the Property bars list box.

4	Click a button on the toolbar, and drag it to the Paradox window.

To reset a toolbar

1	Click View  Toolbars.

2	Choose a toolbar from the Toolbars list.

3	Click Reset.

Adjusting Help window settings

You can adjust the Help window settings to meet your needs. For example, you can change the font size of the text that displays in the Help window to make it easier to read. In addition, you can apply the system colors so that the background color and text in the Help window match the system colors.

You can also change the color of text hyperlinks in the Windows 95/98 and Windows 2000 Help Viewers.

You set these colors, the values r, g, b represent whole numbers that, in turn, represent the red, green, and blue components of the hyperlink color. The range for each value is 0 to 255. You can use r, g, b to set almost any hyperlink color for Help files. Some of the basic colors and their corresponding r, g, b values are:

Black - (0, 0, 0)

White - (255, 255, 255)

Blue - (0, 0, 255)

Red - (255, 0, 0)

Green - (0, 255, 0)

Yellow - (255, 255, 0)

Purple - (255, 0, 255)

Dark Grey - (127, 127, 127)

To adjust the Help window font size

1	Click Help  Help topics.

2	Click the Contents tab.

3	Double-click a book.

4	Double-click a topic.

5	In the Paradox Help window, click Options  Font.

6	Choose one of the following:

  Small-decreases the font size
  
  Normal-sets the default font size
  
  Large-increases the font size
  
To apply system colors to the Help window

1	Click Help  Help topics.

2	Click the Contents tab.

3	Double-click a book.

4	Double-click a topic.

5	In the Paradox Help window, click Options  Use system colors.

To change Help text hyperlink colors in Windows 95/98

1	Click Start on the Windows taskbar, and click Run.

2	In the Open box type win.ini and click OK.

3	Locate the section named [WINDOWS HELP].

If this section doesn't exist, create it at the bottom of the file.

4	On the line immediately following [WINDOWS HELP], type JumpColor=(r,g,b).

5	Save and close the file.

6	Start Paradox.

Note

  The values r, g, b represent whole numbers that, in turn, represent the red, green, and blue components of the hyperlink color. For example, if you want to display hyperlinks in black, you would specify JumpColor=(0, 0, 0).
  
To change Help text hyperlink colors in Windows NT and Windows 2000

1	Click Start on the Windows taskbar, and click Run.

2	In the Open box type regedit and click OK.

3	In the Registry Editor, navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows Help.

4	In the right pane of the window, right-click New and click String Value.

5	Edit the string value so that its name is JumpColor and its data is (r, g, b).

Note

  The values r, g, b represent whole numbers that, in turn, represent the red, green, and blue components of the hyperlink color. For example, if you want to display hyperlinks in black, you would specify JumpColor=(0, 0, 0).
  
Choosing startup preferences

You can choose various startup preferences for Paradox and for creating tables, forms, and reports. Startup preferences allow you to specify how you want to begin a process. For example, you can specify that the table expert starts automatically when you create a table. In addition, you can choose to have experts start automatically. For example, you can have the Welcome expert run when you start Paradox.

You can also choose an ObjectPAL user level preference. You have the option of being a beginner or advanced ObjectPAL user. If you choose the beginner level, you are given access to a list of basic ObjectPAL methods and properties. If you choose the advanced level, you are given access to a wider range of ObjectPAL features.

To specify a startup preference for Paradox

1	Click Tools  Settings  Preferences.

2	Click the General tab.

3	Enable one of the following check boxes:

  Restore on startup-opens the file you worked on when you last exited Paradox
  
  Open project viewer on startup-opens the Project Viewer when you launch Paradox
  
To specify a startup preference for creating tables

1	Click Tools  Settings  Preferences.

2	Click the Tables tab.

3	Enable one of the following options:

  No default-displays the New table dialog box which lets you create a blank table or use the Table expert
  
  Always blank-displays the Table type dialog box which lets you create a blank table
  
  Always use an expert-displays the Table expert
  
To specify a startup preference for creating forms and reports

1	Click Tools  Settings  Preferences.

2	Click the New forms / reports tab.

3	Enable one of the following check boxes:

  No default-displays the New form/report dialog box, which lets you create a blank form or report, use the form/report Expert, or a Data model
  
  Always blank-displays the Form/Report design dialog box, which lets you create a new form or report
  
  Always use an expert-starts the Form/Report expert
  
  Always use data model-displays the Data model dialog box, which lets you create a form or report based on a data model
  
You can also	

Specify to open forms in design mode when you open a form from the Open document dialog box	Enable the Open forms in design mode check box.

Specify to open reports in design mode when you open a report from the Open Document dialog box	Enable the Open reports in design mode check box.

To have experts start automatically

1	Click Tools  Settings  Preferences.

2	Click the Experts tab.

3	Enable one of the following check boxes:

  Run experts when creating objects on documents
  
  Run Welcome expert each time Paradox loads
  
To specify an ObjectPAL user level preference

  Click Tools  Settings  Show advanced features.
  
If advanced features are enabled, a check mark appears next to the menu item.

Adjusting screen refresh and retry settings

Paradox lets you set the number of seconds between screen refreshes. The refresh rate is the length of time between updates of information on the screen as data changes in tables to which you are linked through a network.

You can also specify the length of time you want to spend trying to access tables from which you are locked out. You will be prevented from doing anything else in Paradox during the retry period, but you are not blocked from doing other things on your computer.

To set the number of seconds between screen refreshes

1	Click Tools  Settings  Preferences.

2	Click the Database tab.

3	Type a number in the Refresh rate (seconds) box.

Notes

  When you are editing, you do not need to specify screen refresh intervals. Paradox refreshes the screen whenever you make a change, regardless of your refresh rate setting.
  
  The more you refresh your screen, the higher the demand you place on the network you're connected to. Therefore, you can choose a longer time between refreshes to lessen the demands on the network.
  
Tips

  The Refresh Rate applies only to Paradox tables. To force a refresh on other file formats, such as dBASE or SQL tables, press CTRL + F3.
  
  You can turn off automatic refreshes by typing 0 in the Retry period (seconds) box.
  
To set the number of seconds to retry accessing a record

1	Click Tools  Settings  Preferences.

2	Click the Database tab.

3	Type a number in the Retry period (seconds) box.

Setting character entry preferences

If you prefer, you can set ALT and the numeric keypad to insert a character using its ANSI code, regardless of whether you are in Field View or whether NUM LOCK is enabled.

To set character entry preferences

1	Click Tools  Settings  Preferences.

2	Click the Advanced tab.

3	Enable the Use ALT + numeric keypad for character entry check box.

Specifying working and private directories

Paradox offers two types of directories, a working directory and a private directory. You can use both directories to organize your files.

The working directory is used to store everything related to your current project, such as tables, forms, reports, and queries. The working directory is also the default directory used to open and save files. You can create multiple working directories, which allows you to set different working directories for each project that you are working on. For example, if you are working with tables, forms, reports, and queries in a directory named C:\DATAFILES\BUDGET, you could change your working directory to C:\DATAFILES\BUDGET.

The private directory lets you store temporary files that you don't want other users to overwrite. When you are working in a multi-user environment, you need a place to store your temporary objects. You also need a place to store temporary tables in a nonshared directory, such as an Answer or Keyviol table. All Paradox users need their own private directory when they run Paradox.

To change your working directory

1	Click File  Working directory.

2	Type the full path of the directory in the Directory box.

You can also	

Change your working directory from the Project viewer.	In the Project viewer, click the Select directory button on the toolbar. Type the full path of the directory in the Directory box.

Notes

  When you install Paradox on a local drive, not a network drive, the default directory is called WORKING and given the alias :WORK:. An alias is simply a short form of the full directory path name. For more information about aliases, see "Creating, modifying, and removing aliases."
  
  If you create a project alias, Paradox creates a file called PDOXWORK.CFG and stores it in your working directory. This file contains all project aliases (public aliases are stored in IDAPI32.CFG). For more information, see "Creating, modifying, and removing aliases."
  
To specify a private directory

1	Click Tools  Settings  Preferences.

2	Click the Database tab.

3	Type the full path and name of a directory in the Private directory box.

Paradox assigns the :PRIV: alias to your private directory.

Note

  When you change private directories, Paradox releases any locks you have placed on any tables and deletes all your temporary tables. Make sure you do not need any of your temporary tables before you change private directories.
  
Creating, modifying, and removing aliases

Paradox lets you create aliases, which is a name you can assign as a shortcut to a directory. By default, your working directory has the alias :WORK: and your private directory has the alias :PRIV:. When you create an alias, you cannot use extended characters, such as characters that contain accents. In addition, all lowercase letters are converted to uppercase.

Public aliases

You can create aliases that are available from all directories. These are called public aliases. Public aliases are stored in the BDE configuration file. They are available from any working directory and visible to any application that uses the Borland Database Engine (BDE).

Project aliases

Project aliases are stored in the PDOXWORK.CFG file in the working directory. They are available only when you are using Paradox and are in the working directory you created them in.

Whenever you change working directories, Paradox unloads all project aliases associated with the old working directory and loads those project aliases that are specific to the new working directory.

There are many advantages to using aliases. Aliases allow you to avoid typing long path names. File references within forms, reports, and similar Paradox objects can use alias names rather than full paths. This makes your applications portable. You can move the entire application without recoding all references. All you need to do is change the alias definition. Used this way, an alias is a variable for a directory path. For example, you can design a complex multi-table form using files on your computer's hard disk, referencing tables with an alias to a directory on your disk. When you are ready to share the form on a network, you move the tables on which the form is based to a network directory and redefine the alias to point to that directory. The form then knows where to find the tables on the network.

Using the alias, you can connect to or disconnect from your remote database server. In addition, when you change any of these directory or alias settings, Paradox automatically saves the changes.

To create a public alias

1	Click Tools  Alias manager.

2	Enable the Public alias check box.

3	Click New.

4	Type the name for the new alias in the Database alias box.

5	Choose a driver from the Driver type list box.

The Driver type list box displays all the drivers to which you are connected. Choose Standard to create a database of Paradox (and dBASE) tables.

5	Click Browse.

6	Choose the directory and folder where you want where you want the alias to point to.

7	Click one of the following:

  OK-prompts you to overwrite the existing configuration settings. When you overwrite, Paradox appends the new alias without changing any existing configuration settings. By default, Paradox stores saved public aliases in IDAPI32.CFG and project aliases in PDOXWORK.CFG.
  
  Keep new-keeps the alias, but does not close the dialog box
  
Notes

  If a project alias has the same name as a public alias, Paradox does not load the project alias.
  
  If you click the Keep new button, it becomes the New button. You can then click New to create another alias. If you want the alias you just created to be temporary (exist only until you exit Paradox), click OK and in the Public aliases have changed dialog box, click Yes.
  
Tip

  You can create a private alias by disabling the Public alias check box.
  
To modify an alias

1	Click Tools  Alias manager.

2	In the Alias manager dialog box, choose the alias whose path you want to change from the Database alias list. 

3	Type the new path in the Path box.

4	Click Save as.

Paradox opens the Save file as dialog box and prompts you to overwrite the existing configuration settings. When you overwrite, Paradox appends the new alias without changing any existing configuration settings. By default, Paradox stores saved public aliases in IDAPI.CFG and project aliases in PDOXWORK.CFG.

To remove an existing alias

1	Click Tools  Alias manager.

2	In the Alias manager dialog box, choose the alias you want to remove from the Database alias list box. 

3	Click Remove.

4	Click OK.

Paradox prompts you to save the change in the appropriate .CFG file.

Note

  You can create aliases for local or network directories or for remote databases. For information about Corel SQL links and creating an alias for a remote database, see "Alias Manager dialog box."
  
Tip

  You can create an alias similar to one you already have by selecting the appropriate alias from the Database alias list box. Clicking New, type changes in the box, and clicking Keep new to save the alias.
  



