PyHH_POPUP Object
A Python object, representing an HH_POPUP structure
Comments
Typically you create a PyHH_POPUP (via win32help::HH_POPUP) object, and set its properties. The object can then be passed to any function which takes an HH_POPUP object.Use this structure to specify or modify the attributes of a pop-up window.
Used by
HH_DISPLAY_TEXT_POPUP
Properties
- long hinst
- Instance handle of the program or DLL to retrieve the
string resource from. Ignored if idString is zero.
- unsigned int idString
- Specifies zero, or a resource ID in the
program or DLL specified in hinst.
- int clrForeground
- Specifies the RGB value to use for the
foreground color of the pop-up window. To use the system color for the
window text, specify -1.
- int clrBackground
- Specifies the RGB value to use for the
background color of the pop-up window. To use the system color for the
window background, specify -1.
- string text
- Specifies the text to display if idString is zero.
- string font
- Specifies the font attributes to use for the text in
the pop-up window.
Use the following format to specify font family, point size, character set, and font format:
facename[, point size[, charset[ BOLD ITALIC UNDERLINE]]]
To omit an attribute, enter a comma. For example, to specify bold, 10-pt, MS Sans Serif font, font would be:
MS Sans Serif, 10, , BOLD - tuple pt
- (x,y). Specifies (in pixels) where the top center of the
pop-up window should be located.
- tuple margins
- (left,top,right,bottom). Specifies (in pixels) the
margins to use on the left, top, right, and bottom sides of the pop-up
window. The default for all rectangle members is -1.