Your full service technology partner! 
-Collapse +Expand
Search Paradox Group:

-Collapse +Expand Paradox To/From
-Collapse +Expand Paradox Store

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► KBDesktop Data...Paradox & Ob...ObjectPAL Co...OPAL: Wicked...   Print This     
  From the December 2009 Issue of Prestwood eMag
Paradox OPAL: Wicked Coding Tasks:
Add an Option to Paradox's Tool's Menu
Posted 12 years ago on 6/10/2008
Take Away: How to add an option to the tools menu.


The following code is from Workbench for Paradox and it adds Workbench as a menu option to the Tools menu. For clarity, I simplified the routine a bit. When I have time I'll come back and add comments. In the meantime, if you have questions, contact me.

;Copyright (C) 1998 Mike Prestwood
;OK to use and modify this code 
;but do not post to any public location.
;You can post links back to this article: 
method cmAddToTools()
   sRead    String ;From Registry.
      sFirstTime  String
   sGet    String ;From getFileName.
    sFirstTime = getRegistryValue(kKeyWorkbench, "FirstTime", regKeyCurrentUser)
    sFirstTime = "No"
   sRead = getRegistryValue(kKeyTools, "&Workbench", regKeyCurrentUser)
   sRead = ""
 sGet = getFileName()
 if (sRead <> sGet or sFirstTime = "Yes") then
   setRegistryValue(kKeyWorkbench, "FirstTime", "No", regKeyCurrentUser)
   f.openAsDialog(sWBPath + "Dialogs\\Welcome")
 if sRead <> sGet then
   setRegistryValue(kKeyTools, "&Workbench", sGet, regKeyCurrentUser)
   setRegistryValue(kKeyWorkbench, "WorkbenchPath", sGet, regKeyCurrentUser)
   msgInfo("Installation Note", sGet + "\n\nWorkbench installed (or reinstalled) to your Tools menu.
                        The next time you run Paradox, select Tools | Workbench to open Workbench.")

Manually Adding Menu Item's to Paradox

You can use the code above to add menu items to Paradox or manually by altering the registry.


You can add menu commands to the following menus:

  • File
  • Tools
  • Help
  • File | Open (Use "Open" key name.)
  • File | New (Use "New" key name.)

Inside a key, you place values corresponding to the menu command you want to add. To add a keyboard shortcut, precede the letter with an ampsersand. Precede the menu's value with an integer value (starting with 0) followed by a comma to specify a particular order for your menu item. The filename can be any Paradox form or script (delivered or not) as well as a program file (.EXE, .COM, .BAT, and .PIF), or .DLL. All other filenames are ignored.


Share a thought or comment...
Write a Comment...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1102A1
Enter key:
KB Post Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #101176 Counter
Since 6/10/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site:

©1995-2020 Prestwood IT Solutions.   [Security & Privacy]