Saturday, June 20, 2009

Customizing of environment - part 1

The name of this post is covering quite extensive part of NAPA and many issues. We can customize more less everything in NAPA. Sounds amazing?
So lets make a list from top of my head what you can customize :

  • resources of NAPA - it means, that you can change color, fonts, sizes of different "building blocks" of environment. e.g. color of text windows, hight of text in whole environment, the color of windows ....

  • additional buttons - you can add new buttons in all NAPA windows below main toolbars, but you can also add menu items in your current menu (I know how to do it at least in main window)

  • change default icons to something you like more or you can create your own

  • windows and tools as new widgets - this option is giving almost whatever possibilities and of course you can create your own NAPA tools

  • managers - this is the most common and official way of NAPA customization

In this post I'll start with adjusting of so called resources/resource files. Below is an example of two versions of resource files.

The first screenshot represents default theme and the second my own settings. I made 4 different settings.

  1. Background color

  2. Foreground color

  3. Text background color

  4. Size of the text

If you want to do the same you have to save a text file of this shape :

napa*background : Dimgray
napa*foreground: White
napa*XmText.background: Darkgray

And save this as either RES*your_user_ID or RES*SYSTEM into database SYSDB (DB2). The first form is for customizing of your own run of NAPA and the second is for all users.


  1. i need napa 2009.1 license file
    please help

  2. This is not possible, due to license policy.

  3. how to empty all user accounts and files that in database?

  4. You can remove all users in ADM>INST task of NAPA. To remove all files in database you can do it in ADM task one by one (DELETE command). Anyway, in both cases it is possible to write short script if you want to automatize this task.

  5. thank you Castler..
    how about this script:

    echo on
    !sel name>a
    !do 'del %i' i=list

    is that possible if this script run under user but not admin?