Skip to content

Button Property

See Also

PopupControlItem Object

See Also

Suite Pro Controls ActiveX Control v24.0

Description

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.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Button() As Boolean

Remarks

The popup control allows you to add icons that display a different icon on mouse over and when the icon is clicked. You can add standalone icons or you can add icons to be displayed in a button control. The popup control provides a built-in button control that automatically creates a normal, mouse over, and clicked icon. You can easily add buttons that use your custom icons or you can use the icons that the popup control automatically creates for you. You can even add an icon that acts like a button by adding a normal, mouse over, and on-click icon.

Example

Button Example (Visual Basic)

' This sample code illustrates how to add an icon that will display a different icon on mouse over and when the icon is clicked.

Dim Item As PopupControlItem

Set Item = PopupControl.AddItem(151, 6, 164, 19, "")
Item.SetIcons LoadBitmap("Icons\CloseMSN.bmp"), 0, xtpPopupItemIconNormal Or xtpPopupItemIconSelected Or xtpPopupItemIconPressed
Item.Id = IDCLOSE

' This sample code illustrates how to add an icon that will be a button.

Dim Item As PopupControlItem

Set Item = PopupControl.AddItem(115, 102, 160, 120, "")
Item.SetIcons LoadBitmap("Icons\LogoMSN.bmp"), 0, xtpPopupItemIconNormal
Item.Button = True

See Also

PopupControlItem Object


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