##### 20.8.1.5 Overriding window-access properties with markers

To change a JavaHelp 2 object property for a specific link that accesses a pop-up or secondary window, you can insert a special PI marker somewhere in your document before the link you want to tweak.

Marker name

The name of the PI marker is the keyword for the property to be tweaked, prefixed by JH2Pop for a pop-up window or JH2Sec for a secondary window, or by a prefix you specify; see §20.8.1.6 Designing your own window-access marker names. The keyword part of the marker name can be any of the following:

- Size (see Table 20-1); for example, JH2PopSize or JH2SecSize
- Name or Location, for secondary windows only (see Table 20-1): JH2SecName, JH2SecLocation
- the base name of a window-object access keyword listed in Table 20-2; for example, JH2PopText or JH2SecGraphic.

Marker content

The content of the marker is any value you could assign to the keyword in section [JavaHelpOptions]; see §20.8.1.4 Specifying window-access object properties. The marker content overrides the corresponding keyword setting, but only for the next pop-up or secondary window link in the file.

Resize individual pop-up windows

Use JH2PopSize markers to resize pop-up windows in JavaHelp 2 (something Oracle Help for Java does for you). For example, to specify the dimensions of one particular pop-up window, you could place a marker of type JH2PopSize with content 300,75 somewhere before the pop-up hotspot, for a 300-pixel-wide and 75-pixel-high pop-up window.

JavaHelp 2 pop-up window, resized

This window should be 300x75 pixels when viewed with JavaHelp 2.

Previous Topic: 20.8.1.4.2 Specifying link properties via window-access object

Next Topic: 20.8.1.6 Designing your own window-access marker names

Parent Topic: 20.8.1 Specifying window parameters for JavaHelp 2

Sibling Topics:

20.8.1.1 Assigning default window parameters for JavaHelp 2

20.8.1.2 Mapping image names to graphics files

20.8.1.3 Understanding JavaHelp 2 window-access limitations

20.8.1.4 Specifying window-access object properties

20.8.1.6 Designing your own window-access marker names