Is it possible to change the Loading.gif image?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
RussGuill
Propeller Head
Posts: 44
Joined: Fri Feb 03, 2006 10:11 am
Location: Lincoln, NE
Contact:

Is it possible to change the Loading.gif image?

Post by RussGuill »

Is it possible to change the current Loading.gif image that displays when WebHelp loads? I don't see an entry for it in the Skin Editor.
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Is it possible to change the Loading.gif image?

Post by bobmoon »

RussGuill wrote:Is it possible to change the current Loading.gif image that displays when WebHelp loads? I don't see an entry for it in the Skin Editor.
I guess you're talking about the image that displays in the Contents pane? I found this file in my Flare v4 installation:

C:\Program Files\MadCap Software\MadCap Flare V4\Flare.app\Resources\WebHelp\Default.flwht\Images\Loading.gif

I think that's the one you want, though I didn't try changing it and recompiling.

Bob
RussGuill
Propeller Head
Posts: 44
Joined: Fri Feb 03, 2006 10:11 am
Location: Lincoln, NE
Contact:

Re: Is it possible to change the Loading.gif image?

Post by RussGuill »

I did find the image in my WebHelp output but when I replaced it with my new image it retained the original image's proportions so my new image was distorted. I'd like to replace the default image because the default is very XP-looking and dated.
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Is it possible to change the Loading.gif image?

Post by bobmoon »

RussGuill wrote:I did find the image in my WebHelp output but when I replaced it with my new image it retained the original image's proportions so my new image was distorted. I'd like to replace the default image because the default is very XP-looking and dated.
Looks like that image is referenced in this setup file: C:\Program Files\MadCap Software\MadCap Flare V4\Flare.app\Resources\WebHelp\Content\SkinSupport\MadCapUtilities.js.

You can try changing the width and height specified in this code:

Code: Select all

	img.id = "LoadingImage";
	img.src = rootFrame.gRootFolder + MCGlobals.SkinTemplateFolder + "Images/Loading.gif";
	img.alt = loadingAltText;
	img.style.width = "70px";
	img.style.height = "13px";
	img.style.position = "absolute";
	img.style.left = (midPointX - (70/2)) + "px";
I would expect that changing the code there would carry over to your output, but I haven't tested it. So there's my disclaimer. ;)

Bob
Last edited by bobmoon on Fri May 22, 2009 7:20 am, edited 1 time in total.
RussGuill
Propeller Head
Posts: 44
Joined: Fri Feb 03, 2006 10:11 am
Location: Lincoln, NE
Contact:

Re: Is it possible to change the Loading.gif image?

Post by RussGuill »

But by changing it there it would affect all my output, right? Currently I'm looking at only doing for certain projects.

Thank you for your help. At least I know where I can go to make changes if I feel adventurous.

Looks like I'll be submitting an enhancement request to make that a spec in the Skin Editor.
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Is it possible to change the Loading.gif image?

Post by bobmoon »

RussGuill wrote:But by changing it there it would affect all my output, right? Currently I'm looking at only doing for certain projects.

NOTE: I edited my previous response to include the actual file name (MadCapUtilities.js) where that code is included. :roll:

If you don't mind a manual workaround, you can edit that script file in your final compiled output. You can just tweak the image height and width before you publish. The script file is included in the folder: ...\Output\username\projectname\Content\SkinSupport\MadCapUtilties.js.

Though you're right, it sounds like an enhancement request is in order.

Bob
Post Reply