APPLICATION DESIGN


Creating an image resource
You can create a resource library of images to use throughout your database. Image resources let you maintain the image in only one location. If there are any changes to the image, changing and refreshing the source file distributes the changes wherever the image is referenced.

To create a shared image resource

1. Expand "Shared Resources" in the Design pane.

2. Select Images from the list of Resources.

3. Click "New Image Resource."

4. Select GIF, BMP or JPG in the "Files of type" list.

5. Select one or more graphic files you want to include as image resources.

6. Click "Open." The graphic files you selected are added to the list of image resources.

To set image resource properties

To open the Image Resource Properties box, select the image from the list of images and choose Resource - Resource Properties.

Basics tab

On the Basics tab, the name of the image appears automatically. You can also provide an alias and a comment, both of which appear next to the image resource name in the list of images.

You can also specify:


Design tab

On the Design tab of the Image Resource Properties box, select any of the following design options:
Field or boxDescription
Inherit from the design templateType the name of a template from which the design element might inherit changes.
Prohibit design refresh or replace to modifySelect this to prevent this design element from being modified during a refresh or replace.

If you use a template to refresh or replace the database design, to ensure that this option takes effect, select this option as well as the option "Propagate this prohibition of design change" in the design properties of the template.

Propagate this prohibition of design changeSelect this so that if a database inherits this design element, the "Prohibit design refresh or Replace to modify" box option will be inherited also, and it will still be selected.
Hide design elements from (Web Browsers)Select to hide the design element from Web users.
Hide design elements from (Notes R4.6 or later clients)Select to hide the design element from IBM® Lotus® Notes® Release 4.6 or later clients.

To colorize grays

If you want an image to blend with the user’s system colors, select the option "Colorize grays" on the Basics tab of the Image Resource Properties box. When enabled, the grays in an image that use the Lotus palette change to the color scheme of the user’s operating system. This feature lets the image resources blend in with the other elements of the user’s system, such as dialog boxes and menu bars.

To insert an image resource

1. Open a form, document, or page.

2. Place the cursor where you want to add the image.

3. Choose Create - Insert Resource.

4. Under Databases, select the database from which you want to insert the image resource.

5. Under "Resource type," select Images.

6. Under "Additional resources," select an image to insert from the list of images.

7. Click OK to display the image in the form, document, or page.

Tip You can use the images among multiple databases by putting the image into a template. Databases inheriting from that template have easy access to the image.

For more information on creating templates and inheriting design, see the topic "Templates" in the chapter "Completing an Application and Managing Design Changes."

To insert an image resource from a file in the current database

You can insert an image resource from a file that you created and stored in your current database.

1. Open a form, document, or page.

2. Place the cursor where you want to add the image.

3. Choose Create - Image Resource.

4. In the "Insert Image Resource" dialog box, make sure that the Database is set to -Current database-.

5. Click "New."


6. After you have selected a file, in the Insert Image Resource dialog box, click OK.
To rename an image resource

Perform the following steps to rename an image resource that you created.

1. Open a form, document, or page.

2. Choose Create - Image Resource.

3. In the Insert Image Resource box, select the image resource that you want to rename.

4. Click Rename.

5. Type a new image resource name. You should also specify an alias if there is a chance that the image resource could be renamed. To specify an alias, after the image resource name, type a vertical bar (|) followed by the alias name. For example, ImageName|ImageAlias.


To delete an image resource

Perform the following steps to delete an image resource that you created.

1. Open a form, document, or page.

2. Choose Create - Image Resource.

3. In the Insert Image Resource box, select the image resource that you want to delete.

4. Click Delete. The image resource is deleted from the image resource list and from the database.

To reference an image resource with HTML

You can use Pass-thru HTML to reference image resources within a database.

1. Enter the HTML <img src> tag using the name of the image resource. For example:


2. Select text and choose Text - Pass-thru HTML.

3. (Optional) Use other HTML formatting tags to position the image.

To make design changes to an image resource

To make design changes to a graphic used as an image resource, export the image to a graphics program. Once the changes are made, update the image resource and distribute the design changes.

Exporting an image resource

1. Select the image or images you want to redesign.

2. Choose Resource - Export.

3. Select the directory you want to copy the image to.

4. Click Open.

Distributing design changes for an image

When you redesign an image resource, you can distribute the changes wherever the image appears in the database.

1. In the list of images in IBM® Lotus® Domino(TM) Designer, select the images that have changed and click Refresh.

2. In the Open dialog box, select the images from your directory.

3. Click "Open."

Designer automatically updates the image in all of the places it is referenced in the application.

Creating a custom letterhead

You can select a graphic to appear as the mail header for all employee mail. Simply add your company's logo to the image resources of your organizations' mail templates. Only employees who have access to the mail template will see the letterhead; other recipients, such as those outside your company or with an Internet mail account, will receive a standard letterhead.

For details on creating a custom letterhead, see "Creating a custom letterhead" on the Lotus Developer Domain.

See Also