See Also
PopupControlItem Overview

| Suite Pro Controls ActiveX Control v24.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Public Methods
| Method |
Description |
CalculateHeight |
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. |
CalculateWidth |
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. |
CenterIcon |
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. |
SetIcon |
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). |
SetIcons |
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 |
BackgroundColor |
Gets/Sets the background color of the popup control item. |
Bold |
Gets/Sets a Boolean value indicating whether the text of the popup control item is displayed in bold font. |
BorderColor |
Gets/Sets the border color of the popup control item. By default, the border color is transparent. |
Button |
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. |
Caption |
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. |
Font |
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. |
Height |
Gets/Sets the height of the PopupControlItem in pixels. |
HyperLink |
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. |
IconIndex |
Gets/Sets the Id/Index of an icon stored in the Popup Control's collection of icons that is displayed in the PopupControlItem. |
Id |
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. |
Left |
Gets/Sets the distance between the left edge of the popup control and the left edge of the PopupControlItem. |
TextAlignment |
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. |
TextColor |
Gets/Sets the text color of the popup control item. This allows you to change the color of the text. |
Top |
Gets/Sets the distance between the top edge of the popup control and the top edge of the PopupControlItem. |
Width |
Gets/Sets the width of the PopupControlItem in pixels. |
See Also
PopupControlItem Overview
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.