Skip to content

PopupControlItem Object Members

See Also

PopupControlItem Overview

See Also

Suite Pro Controls ActiveX Control v24.0

PopupControlItem Object Members

Public Methods

Method Description
Public MethodCalculateHeight Calculates the height available to display the text and icons of the popup control item. The height will depend on the "top" and "bottom" values used when adding the item to the popup control.
Public MethodCalculateWidth Calculates the width available to display the text and icons of the popup control item. The width will depend on the "left" and "right" values used when adding the item to the popup control.
Public MethodCenterIcon Centers the icon of the popup control item within the area of the popup control that the popup control item occupies. The area the popup control item occupies is set when the item is added to the popup control.
Public MethodSetIcon Used when only one icon is used to display the popup control item. The same icon is used at all times (i.e., mouse over and on click).
Public MethodSetIcons Used when more than one icon will be used to display the popup control item. This is used if the icon will use a different icon on mouse over or when the item is clicked. When adding an icon with this method, the icons need to be added together in the same bitmap file for all three cases. So the bitmap has all three identically sized icons side-by-side in the same BMP file: one for normal use, one for mouse over, and one for on click. This method is also used when you need to specify a mask color for your icon(s).

Public Properties

Property Description
Public PropertyBackgroundColor Gets/Sets the background color of the popup control item.
Public PropertyBold Gets/Sets a Boolean value indicating whether the text of the popup control item is displayed in bold font.
Public PropertyBorderColor Gets/Sets the border color of the popup control item. By default, the border color is transparent.
Public PropertyButton Gets/Sets a Boolean value indicating whether the popup control item is a button. If true, the popup control item will look and act as a button.
Public PropertyCaption Gets/Sets the text that is displayed for the popup control item. This is usually set when the item is added to the popup control.
Public PropertyFont Gets/Sets the font that will be used to display the text for the popup control item. This applies to the current popup control item only and must be set for each popup control item.
Public PropertyHeight Gets/Sets the height of the PopupControlItem in pixels.
Public PropertyHyperLink Gets/Sets a Boolean value indicating whether the item in the popup control will be a hyperlink. This will cause the text to be underlined on mouse over if the item is text.
Public PropertyIconIndex Gets/Sets the Id/Index of an icon stored in the Popup Control's collection of icons that is displayed in the PopupControlItem.
Public PropertyId Gets/Sets the Id of the popup control item. This is a numeric identifier used to identify the popup control item. This Id is used in the PopupControl_ItemClick event to determine which popup control was clicked so the appropriate action can be taken.
Public PropertyLeft Gets/Sets the distance between the left edge of the popup control and the left edge of the PopupControlItem.
Public PropertyTextAlignment Gets/Sets the alignment of the text within the popup control. This applies to the current popup control item only and must be set for each popup control item.
Public PropertyTextColor Gets/Sets the text color of the popup control item. This allows you to change the color of the text.
Public PropertyTop Gets/Sets the distance between the top edge of the popup control and the top edge of the PopupControlItem.
Public PropertyWidth Gets/Sets the width of the PopupControlItem in pixels.

See Also

PopupControlItem Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.