H&M version: 3.3.1.856
I'm trying to left-justify a bitmap with a macro attached to it. The bitmap is always displayed as if "text" alignment was selected. This happens with CHM or HLP output options.
1) Put cursor at beginning of text paragraph.
2) Select Insert > WinHelp Macro.
3) Enter macro text (in my case, an ExecFile).
4) Select bitmap style.
5) Click folder button to select bitmap file.
6) In Open dialog box, select bitmap file and select Left alignment option.
7) Click Open button.
8) Click Ok button.
9) Save changes.
10) Compile help file (as CHM or HLP).
11) View resulting file. Bitmap is not left-aligned.
Is this a bug, or am I missing something?
Cannot left-align bitmap with macro
Moderators: Alexander Halser, Tim Green
-
- Posts: 67
- Joined: Tue Aug 05, 2003 12:08 am
- Location: California, US
- Contact:
Cannot left-align bitmap with macro
Laura Look
Bitsmith Software
Bitsmith Software
- Tim Green
- Site Admin
- Posts: 23184
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
This is a little bug. You can check it by deselecting "Delete temporary files after compilation" when you compile. Then if you look at the source HTML file for the topic in question (in the ~tmphtml directory in your project directory) you will find that align="left" is missing from the block of code for the image with the macro, which looks like this:
If you edit the end of this block like this:
and recompile manually with HTML Help Workshop you will find that the image is aligned properly.
Until this gets fixed the workaround would be to add a hotspot with a macro to the image with Impict. (You must use Impict's native .IPP format when you do this.)
Code: Select all
<object id=hhctrl_1 type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="ShortCut"><param name="Item1" value=",notepad.exe,"></object><a href=JavaScript:hhctrl_1.hhclick()><img src="logo_sml.bmp" width="150" height="100" border="0"></a>
Code: Select all
<img src="logo_sm.bmp" width="150" height="100" border="0" align="left"></a>
Until this gets fixed the workaround would be to add a hotspot with a macro to the image with Impict. (You must use Impict's native .IPP format when you do this.)
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 67
- Joined: Tue Aug 05, 2003 12:08 am
- Location: California, US
- Contact: