THHPopup
Used to set the attributes of a popup window.
Used by:
HH_DISPLAY_TEXT_POPUP
Declaration:
PHHPopup = ^THHPopup;
tagHH_POPUP = packed record
cbStruct: Integer;
hinst: HINST;
idString: UINT;
pszText: LPCTSTR;
pt: TPoint;
clrForeGround: TColorRef;
clrBackground: TColorRef;
rcMargins: TRect;
pszFont: LPCTSTR;
end;
HH_POPUP = tagHH_POPUP;
THHPopup = tagHH_POPUP;
Description:
The THHPopup record is used with the HH_DISPLAY_TEXT_POPUP command to specify the
attributes of the popup windows. You can use it to specify the topic to display and
control the formatting of the displayed text. The following table explains all the members
of this record.
Member | Description |
---|---|
cbStruct | Specifies the size of this record. Always assign this member by using SizeOf before passing it to the HtmlHelp function. |
hinst | Instance handle of the module (executable or DLL) that contains the string resource or nil. If the resource string is contained in the executable you can set this member to the HInstance global variable otherwise specify the instance handle of the module that contains the resource (e.g. the handle returned from LoadLibrary). |
idString | Id of the string resource or 0. The id can be either the id of a string resource in some executable or the id of a topic in the popup topics file in the CHM. |
pszText | Specifies the text to display or nil if a string resource is supplied. |
pt | Top-center position, in screen coordinates, where the popup window is to be displayed. |
clrForeGround | The color of the text (RGB) or -1 to use the default (system) color which is black. For example TColorRef($000000FF) which is the brighest blue. |
clrBackground | The color of the popup windows's background (RGB) or -1 to use the default (system) color, which is pale yellow. |
rcMargins | Margins between the popup window border and popup text in pixels or -1 for the default values. For example: Rect(-1, -1, -1, -1) gives you the default while Rect(1, 2, 3, 4) gives a margin of 1, 2, 3 and 4 for the left, top, right and bottom margins respectively. |
pszFont | The font
for the popup text in the following format: facename[, point size[, charset[ BOLD ITALIC UNDERLINE]]] To omit any of the attributes specify only a comma. Examples: pszFont := 'Tahoma, 10, , BOLD'; pszFont := 'Courier, 12, , BOLD ITALIC'; |