SftButton/OCX 2.5

SftButton Object (ISftButton Interface)

Softel vdm, Inc.

The SftButton object is the main object describing the SftButton/OCX button control. Through its properties, additional objects can be accessed.

Property/Method

Description

_Version

Returns the product's exact version.

AboutBox

Displays product, contact and copyright information.

AllowFocus

Defines whether the control can receive the input focus.

AutoSize

Defines how the control is resized based on its contents.

AVIPlay

Defines the animation used as a button picture component.

AVIPlayResource

Defines the animation used as a button picture component.

AVITransparent

Defines whether animations are transparent.

BackColor

Defines the control's background color.

BackColorEnd

Defines the control's gradient fill background color (combined with BackColorStart).

BackColorFocus

Defines the control's background color when it has the input focus.

BackColorFocusEnd

Defines the control's gradient fill background color when it has the input focus (combined with BackColorFocusStart).

BackColorFocusStart

Defines the control's gradient fill background color when it has the input focus (combined with BackColorFocusEnd).

BackColorHover

Defines the control's background color when the mouse cursor hovers over the control.

BackColorHoverEnd

Defines the control's gradient fill background color when the mouse cursor hovers over the control (combined with BackColorHoverStart).

BackColorHoverStart

Defines the control's gradient fill background color when the mouse cursor hovers over the control (combined with BackColorHoverEnd).

BackColorOutside

Defines the control's background color around the outer perimeter (using Windows themes only).

BackColorPressed

Defines the control's background color when pressed.

BackColorStart

Defines the control's gradient fill background color (combined with BackColorEnd).

BorderAlways

Defines whether the control border is always displayed.

BorderStyle

Defines the control's border style.

Bounce

Defines the control's visual response to a mouse click.

ButtonStyle

Defines the button style.

CancelMode

Cancels current processing modes.

ClickInterval

Defines the auto-repeat interval between Click events while the button is pressed.

ClickStyle

Defines how the control responds to mouse clicks.

CustomCode

Defines optional product customization.

DarkEdgeColor

Defines the control's color for dark edges.

Direct

Returns an ISftButtonVTable interface pointer.

DropDownDownClick

Defines whether the drop down button fires the DropDownClick event when the mouse button is either pressed or released.

DropDownFollows

Defines whether the drop down button follows button clicks.

DropDownPressed

Defines whether the drop down button is pressed (toggle button only).

DropDownStyle

Defines the width of the drop down button.

DropDownToggle

Defines whether the drop down button is a toggle button.

Enabled

Defines whether the control responds to user-generated events.

FillOrientation

Defines the gradient fill orientation.

Follows

Defines whether the button follows drop down button clicks.

Font

Defines the font used to display text.

ForeColor

Defines the control's text color.

ForeColorDownArrow

Defines the foreground color for the drop down arrow.

ForeColorGrayed

Defines the control's text color when disabled.

ForeColorPressed

Defines the control's text color when pressed.

GetPosition

Returns the position and dimensions of an area of the control.

GetPositionPix

Returns the position and dimensions of an area of the control.

GetPositionV

Returns the position and dimensions of an area of the control.

HitTest

Determines the area at a given location.

HitTestPix

Determines the area at a given location.

HitTestV

Determines the area at a given location.

HoverOnControl

The mouse cursor is located on the control.

HoverOnImage1

The mouse cursor is located on the first image of the control.

HoverOnImage2

The mouse cursor is located on the second image of the control.

HoverOnText

The mouse cursor is located on the text portion of the control.

HoverStyle

Defines how images respond to mouse cursor positions.

Image1

Defines the first graphic.

Image1AlignHorz

Defines the horizontal alignment of the first graphic.

Image1AlignVert

Defines the vertical alignment of the first graphic.

Image1Disabled

Defines the first graphic when the button is disabled.

Image1Hover

Defines the first graphic when the mouse cursor is located on the control.

Image1Pressed

Defines the first graphic when the button is pressed.

Image2

Defines the second graphic.

Image2AlignHorz

Defines the horizontal alignment of the second graphic.

Image2AlignVert

Defines the vertical alignment of the second graphic.

Image2Disabled

Defines the second graphic when the button is disabled.

Image2Hover

Defines the second graphic when the mouse cursor is located on the control.

Image2Pressed

Defines the second graphic when the button is pressed.

License

Returns the product's license number.

LightEdgeColor

Defines the control's color for light edges.

LoadPicture

Loads a picture from a file/URL.

MouseIcon

Defines a custom mouse icon.

MousePointer

Defines the mouse pointer used.

OLEDrag

Initiates an OLE drag & drop operation.

OLEDragMode

Defines OLE drag support.

OLEDropMode

Defines OLE drop support.

OptimalHeight

Returns the control's optimal height.

OptimalWidth

Returns the control's optimal width.

Orientation

Defines the text and picture orientation.

Picture1

Defines the first graphic.

Picture1AlignHorz

Defines the horizontal alignment of the first graphic.

Picture1AlignVert

Defines the vertical alignment of the first graphic.

Picture2

Defines the second graphic.

Picture2AlignHorz

Defines the horizontal alignment of the second graphic.

Picture2AlignVert

Defines the vertical alignment of the second graphic.

Pressed

Defines whether the button is pressed (toggle button only).

Refresh

Repaints the entire control.

RightToLeft

Defines the display direction and visual appearance on a bidirectional system.

ShadowEdgeColor

Defines the control's color for shadow edges.

ShowDropDown

Defines whether the drop down button is displayed.

ShowFocus

Defines whether the control displays a focus rectangle when it has the input focus.

Text

Defines the control's caption.

TextAlignHorz

Defines the horizontal alignment of the text.

TextAlignVert

Defines the vertical alignment of the text.

Toggle

Defines whether the button is a toggle button.

UseThemes

Defines whether Windows themes can be used.

Version

Returns the product's exact version.

WebLicense

Defines the license information for use on one web site.

WhiteEdgeColor

Defines the control's color for white edges.

Window

Returns the control's window handle.

See Also  Object Hierarchy


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com