IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Technical Library
developerWorks

[back to "Domino Designer R5: The Outline Designer"]

Image Resources (sidebar)
The new R5 Image Resources give designers a place to store graphics -- GIF's, JPEG's, and BMP's -- within a database so that they can be shared in a number of different places in the application. This way, you can store the images once and use them multiple times, thus saving storage space and speeding things up. You can use Image Resources on pages, forms, Outline entries and backgrounds, table cell backgrounds, and action buttons. You add images to the database by opening the Resources twistie of the Design List, then click the New Image Resource button. You can add one or more images by selecting them and clicking Open.

You can create rollover button effects in the Outline by creating an image resource that actually holds two or more images in it, separated by a one-pixel "image well." For the Outline, you can use up to three images -- the first is the normal state of the button; the second is the state when the mouse is over the entry; the third image is the button when the entry is selected. Each image must be exactly the same height and width and separated by only one pixel. For example, if your buttons are 100-pixels wide by 50 high, then the image you store as an image resource would be 302 by 50. Here's an example:

The buttons

Once the image is added to the database, then you open the Image properties box and specify how many images there are. In this case, we specified three images. This tells Designer how to split up the image when it's used in an Outline background.

The Image Resource properties box

    About IBM Privacy Contact