Welcome to Macrobject Community Login | Register | Faq  

    Macrobject Community
  Macrobject Software Knowledge Management and Collaboration Platform
Search    
   

Re: using png instead of gif in navigator
Started by jokrug at 08-11-2009 1:36 AM. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  08-11-2009, 1:36 AM
jokrug is not online. Last active: 3/22/2010 4:43:38 PM jokrug

Top 25 Posts
Joined on 08-10-2009
Posts 7
using png instead of gif in navigator
Reply Quote
Hello!
I am using "Word-2-chm 2009 Pro, 2009.2.718.2187.
The generated chm files are used on Windows and on a Linux system (with kchmviewer).
Under Linux, the button graphics of the navigator (we use the msdn template) are not shown. This is, because our kchmviewer can not deal with gifs. Gif support was left out because of the limitted resources on our Linux machines.
Is there a way to make the navigator using up.png, left.png... instead of the respective gifs?


   Report 
  08-11-2009, 8:16 AM
David is not online. Last active: 11/17/2011 8:07:51 AM David

Top 10 Posts
Joined on 01-26-2008
Posts 193
Re: using png instead of gif in navigator
Reply Quote
Currently you could modify the MSDN theme.
Replace the .gif to .png and convert again.

We will modify the MSDN theme to .png in the next update.
   Report 
  08-13-2009, 2:00 AM
jokrug is not online. Last active: 3/22/2010 4:43:38 PM jokrug

Top 25 Posts
Joined on 08-10-2009
Posts 7
Smile [:)]Re: using png instead of gif in navigator
Reply Quote
The navigator seems to be generated by the function GetNavigator(Node).
Currently it uses the "left.gif", "up_d.gif" and "right.gif" from UserImages.
I cannot find an entry in any of the files from the MSDN theme, where I could change this behaviour.

By the way: the installer installed the gifs in UserImages with uppercase fist letters like "Up.gif". The function GetNavigator() creates tags like "img src="up.gif". This is no problem under Windows, but since Linux is case sensitive, it will never find the files.
Just a little adjusment for the small minority of Linux users Smile [:)]
   Report 
  08-13-2009, 6:34 AM
David is not online. Last active: 11/17/2011 8:07:51 AM David

Top 10 Posts
Joined on 01-26-2008
Posts 193
Re: using png instead of gif in navigator
Reply Quote
Please modify the "MSDN Style.theme" in Themes\MSDN Style, add the code append to function InitTheme():
  this.prevImg1 = 'images/left.png';
  this.prevImg2 = 'images/left_d.png';
  this.nextImg1 = 'images/right.png';
  this.nextImg2 = 'images/right_d.png';
  this.upImg1   = 'images/up.png';
  this.upImg2   = 'images/up_d.png';

And then convert the *.gif to *.png (lowercase the filename as above).

Please try it by yourself at first. We will release the update which contains the modifies.
   Report 
  08-13-2009, 11:50 PM
jokrug is not online. Last active: 3/22/2010 4:43:38 PM jokrug

Top 25 Posts
Joined on 08-10-2009
Posts 7
Re: using png instead of gif in navigator
Reply Quote
I did it and it works perfekt.
The buttons show up and the navigator works even under linux.

Again, many thanks for the fast help.

   Report 
Post
Macrobject Comm... » Help Authoring ... » Word-2-CHM Conv... » Re: using png instead of gif in navigator

Powered by Community Server, by Telligent Systems