Skip to main content

"displayviewimages" not working in jHelp component

4 replies [Last post]
hairyveggie
Offline
Joined: 2006-02-17
Points: 0

Hi everyone.

I'm trying to customize some of the presentation of our help window, such as adding toolbar buttons and displaying text instead of images for the navigator tabs.
We are not using a HelpBroker, but a jHelp component that gets shoved in either a JFrame or a JPanel for embedding.
Our setup is this (names have been changed to protect the guilty):
Help.jar
->mstrHelpSet.hs
->modularHelpSet1/
--> test.hs
--> map.xml
--> toc.xml
--> idx.xml
--> *.html
->modularHelpSet2/
--> (same as set 1) ...

I am using the tag in the mstrHelpSet.hs as follows:

MainWindow

Help System

javax.help.BackAction
javax.help.ForwardAction
javax.help.SeparatorAction
javax.help.PrintAction
javax.help.PrintSetupAction
javax.help.SeparatorAction
javax.help.HomeAction

Sub-helpsets are merged dynamically.

When the help window is displayed, I see the changes to the toolbar are there, but my navigator tabs still show the default images, instead of the labels that I specified.

Does anyone see what I'm doing wrong here?

Thanks!
Luke

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
brinkley
Offline
Joined: 2003-06-06
Points: 0

You have to define an tag for each navigator you want to change in the navigators view. If you did that make sure your map file has the entries and that the entries are valid (exist).

Binky

hairyveggie
Offline
Joined: 2006-02-17
Points: 0

Thanks, binky.
Sorry I wasn't clear but I don't want images on the tabs, I just want to see the "label" text. I've read that setting "displayviewimages=false" on the default presentation should do it, but no dice.

Are you saying I need to specify a blank "image" tag for each view?

brinkley
Offline
Joined: 2003-06-06
Points: 0

> Thanks, binky.
> Sorry I wasn't clear but I don't want images on the
> tabs, I just want to see the "label" text. I've read
> that setting "displayviewimages=false" on the default
> presentation should do it, but no dice.

Oh that. Since your using your own frame you'll have to do all the settings yourself in your code. See the javahelp archives at

http://archives.java.sun.com/cgi-bin/wa?A2=ind0310&L=javahelp-interest&P...

For some silly reason this message didn't get posted to the forum.

Binky

hairyveggie
Offline
Joined: 2006-02-17
Points: 0

Great! That should get me going. Thanks for everything, binky, you are "da man"!