mcgettiu
asked on
Changing the title bar icon in JavaHelp 2.0
Im trying to update the icon in the title bar in JavaHelp 2.0
Ive read the System User's Guide, and from what I gather all i need to do is add a presentation tag to my helpset file.
I added the following to my helpset file. The extra tool bar icons are picked up, however the title bar icon is not. Any ideas why?
<presentation default="true">
<name>main window</name>
<size width="10" height="10" />
<location x="1200" y="1200" />
<title>Help Is Right</title>
<image>MyLogo</image>
<toolbar>
<helpaction>javax.help.Bac kAction</h elpaction>
<helpaction>javax.help.For wardAction </helpacti on>
<helpaction>javax.help.Sep aratorActi on</helpac tion>
<helpaction>javax.help.Hom eAction</h elpaction>
<helpaction>javax.help.Rel oadAction< /helpactio n>
<helpaction>javax.help.Sep aratorActi on</helpac tion>
<helpaction>javax.help.Pri ntAction</ helpaction >
<helpaction>javax.help.Pri ntSetupAct ion</helpa ction>
</toolbar>
</presentation>
Ive read the System User's Guide, and from what I gather all i need to do is add a presentation tag to my helpset file.
I added the following to my helpset file. The extra tool bar icons are picked up, however the title bar icon is not. Any ideas why?
<presentation default="true">
<name>main window</name>
<size width="10" height="10" />
<location x="1200" y="1200" />
<title>Help Is Right</title>
<image>MyLogo</image>
<toolbar>
<helpaction>javax.help.Bac
<helpaction>javax.help.For
<helpaction>javax.help.Sep
<helpaction>javax.help.Hom
<helpaction>javax.help.Rel
<helpaction>javax.help.Sep
<helpaction>javax.help.Pri
<helpaction>javax.help.Pri
</toolbar>
</presentation>
Create a <maps> section and add the following,
<mapref location="TaxCalculatorMap .jhm" />
You should have the following lines in TaxCalculatorMap.jhm
<map version="2.0">
<mapID target="MyLogo" url="images/icon.gif" />
</map>
<mapref location="TaxCalculatorMap
You should have the following lines in TaxCalculatorMap.jhm
<map version="2.0">
<mapID target="MyLogo" url="images/icon.gif" />
</map>
ASKER
Hi there
I had already created a .jhm file, which does include a mapId for my logo
And my .hs file already included a maps section iwth a mapref tag.
Any other ideas why it might not be working?
I had already created a .jhm file, which does include a mapId for my logo
And my .hs file already included a maps section iwth a mapref tag.
Any other ideas why it might not be working?
ASKER
Hi mayankeagle
Thanks for the links - I had previously read that documentation.
I figured out what was going on though - the icon gif file I was using was just too big. I decreased the colour depth to reduce the size of the file and it worked fine.
Im not sure what I do with the points for this question now?
Thanks for the links - I had previously read that documentation.
I figured out what was going on though - the icon gif file I was using was just too big. I decreased the colour depth to reduce the size of the file and it worked fine.
Im not sure what I do with the points for this question now?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<map version="2.0">
...
<mapID target="overview" url="TaxCalculator/overvie
<mapID target="icon" url="images/icon.gif" />
<mapID target="glossary_icon" url="images/g.gif" />
<mapID target="addfav_icon" url="images/addfav_icon.gi
...
</map>
Visit http://www-128.ibm.com/developerworks/java/library/j-javahelp2/ for details.