WebHelp: Close-this-Help button in toolbar

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
Sharpras
Sr. Propeller Head
Posts: 138
Joined: Fri May 05, 2006 10:17 am
Location: Redmond, WA

WebHelp: Close-this-Help button in toolbar

Post by Sharpras »

Does anyone know how I can add a custom button to the WebHelp toolbar that closes the Help window? I'm building WebHelp with 4.0 for a touch screen and the X in the top right corner is too small.

Thanks,
Roger
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: WebHelp: Close-this-Help button in toolbar

Post by LTinker68 »

In the skin, under Styles, click on the toolbar group. You can add a custom class, assign up and down state icons, and write an onClick JavaScript or other code to do whatever you want done when the button is clicked. Also in the skin, you'll need to go to the WebHelp Toolbar tab and add the custom class you just created to the toolbar.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Sharpras
Sr. Propeller Head
Posts: 138
Joined: Fri May 05, 2006 10:17 am
Location: Redmond, WA

Re: WebHelp: Close-this-Help button in toolbar

Post by Sharpras »

Thanks, Lisa.

About the JavaScript:
How much do need? Is this enough?
onClick="javascript:window.close();"

Roger
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: WebHelp: Close-this-Help button in toolbar

Post by LTinker68 »

Looks about right, but I'm not an expert.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Post Reply