$doctitle = "Changing the Paradox Caption"; $authname = "Lance Leonard"; $versions = "Applies to: Paradox 5.0 and later"; $postdate = "20 July 2000"; $pagearea = 2; $audience = "2"; $navlinks = 'Paradox'; $metakeys = "paradox objectpal titlebar caption title label name change get retrieve obtain message"; $metadesc = "Describes how to get or set the caption in the Paradox title bar."; ?> include( $DOCUMENT_ROOT . "/lib/pageinit.php" ); ?>
Answer: There are a few different ways to do this, depending on your need and purpose. To do this from:
1. Interactive Paradox, you can read the caption from the title bar and change it with the Title preference in the General tab of Paradox's Preferences dialog. If you have problems getting the correct caption by reading the title bar, try selecting text in the Title preference; there may be extra spaces or characters.
2. ObjectPAL, use the setTitle (or getTitle) methods of the Application type. For example:
var
app Application
str String
endVar
str = app.getTitle() ; gets the caption
str.view( "Title" )
app.setTitle( "My Paradox" ) ; changes the caption
3. An installation script, use the following Registry key:
Pdoxwin\Properties\Title
You'll find this in a location appropriate to the publisher and version of Paradox you're using. For example, if you're using Paradox version 9.0, the full key is:
HKEY_CURRENT_USER\Software\Corel\Paradox\9.0\Pdoxwin\Properties\Title
For Paradox 9.0 Runtime, the full key is:
HKEY_CURRENT_USER\Software\Corel\Paradox Runtime\9.0\Pdoxwin\Properties\Title
16-bit users need to change the Title setting in the [Properties] section of their WINDOWS\PDOXWIN.INI file. include( $DOCUMENT_ROOT . "/lib/pagecomp.php" ); ?>