DropDownBody printed expaned ?!?

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
henkjans
Propeller Head
Posts: 86
Joined: Wed Feb 02, 2011 1:59 am

DropDownBody printed expaned ?!?

Post by henkjans »

when I'm viewing my html Help DropDownBody's are closed at default (and that's correct for me).
When I'm printing the particular page I'm getting wysiwyg, closed body's.
Is there a way to force body's to print expanded?
Thanks,
Henk Jan Schut
The Netherlands
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: DropDownBody printed expaned ?!?

Post by LTinker68 »

Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
henkjans
Propeller Head
Posts: 86
Joined: Wed Feb 02, 2011 1:59 am

Re: DropDownBody printed expaned ?!?

Post by henkjans »

Thanx Lisa,
I learned how to use java scripting for certain purposes.
In your link I did not find anything which solves my question.
I ment, on opening a HtmlHelp page, all dropdownbody's are closed (no problem with that).
Printing this HtmlHelp page should result in dropdownbody's opened.
Thanks,
Henk Jan Schut
The Netherlands
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: DropDownBody printed expaned ?!?

Post by NorthEast »

Hmm... that link is about opening dropdowns when you open a topic, which isn't what you want.

You can add a print button to do what you want, but it would have to be in a topic toolbar (not the main HTML Help toolbar).

First create a new 'ToolbarItem' button:

1. In the skin, go to the Styles tab.
2. In the Styles list (left), open the the ToolbarItem section.
3. Copy and paste the Print item (so you copy its icon) - e.g. select Print and press Ctrl+C then Ctrl+V.
4. You should now have a Print1 item, maybe rename it to ExpandAndPrint.
5. Select your new item, and in its properties (right) open the Type section:
- Set ControlType to Button.
- In the OnClick setting, copy and paste exactly this:

Code: Select all

ExpandAll("open"); PrintTopic();
Next add the button to your topic toolbar:

1. Go to the skin Topic Toolbar tab.
2. You should see your button (e.g. ExpandAndPrint) in the Available list - add it to the toolbar.


(This also works for the WebHelp toolbar.)
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: DropDownBody printed expaned ?!?

Post by LTinker68 »

Oh, sorry. Yes, that scripts to work to expand everything when you open the topic, and if you print at that point then everything prints because they're already expanded, but it sounds like you didn't want them expanded on open, just for printing. Sorry, read too much into the request or didn't read it well enough.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
henkjans
Propeller Head
Posts: 86
Joined: Wed Feb 02, 2011 1:59 am

Re: DropDownBody printed expaned ?!?

Post by henkjans »

Thanx Dave,
sound good for me to work with. I will try it out and let you know!
Thanks,
Henk Jan Schut
The Netherlands
Post Reply