Class: cSigCJPushButton

Module location: cSigCJPushButton.pkg line 84 (view source)

{ OverrideProperty=Enabled_State DesignTime=False }

Class Hierarchy:

DFCOMACTIVEXCONTROLcComActiveXControlcSigCjComPushButtoncSigCJPushButton

Mixins:

cSigCJMethods_Mixin,

Class Definition

Properties

BooleanpbEnableHotTrack
BooleanpbPointer_Only
--------------------------------------------------------------------- pbPointer_Only - Prevents the button from taking the focus
HandlephoDropDownMenu
---------------------------------------------------------------------
HandlephoReturn_Focus
phoReturn_Focus - Store the invoking object so focus can be returned if pointer only
HandlephoToolTipController
IntegerpiHotTrackColor
HandlePrivate_hoFont
booleanPrivate_pbBold
Property Private_pihWnd Gets the window handle that the control is bound to. Property Private_p OLEDropMode Returns or sets how a target component handles drop operations. Property Private_p Picture Gets or sets a graphic to be displayed in a push button. Property Private_p Transparent Determines if the background of a TabControlPage is visible in WinXP mode.
BooleanPrivate_pbChecked
BooleanPrivate_pbClick_Valid
BooleanPrivate_pbDefault
BooleanPrivate_pbDrawFocusRect
BooleanPrivate_pbEnabled
BooleanPrivate_pbEnableMarkup
BooleanPrivate_pbFlatStyle
BooleanPrivate_pbInDropDown
BooleanPrivate_pbItalic
BooleanPrivate_pbMultiLine
BooleanPrivate_pbRightToLeft
BooleanPrivate_pbStrikethrough
BooleanPrivate_pbUnderline
BooleanPrivate_pbUseVisualStyle
BooleanPrivate_pbValue
BooleanPrivate_pbVisible
IntegerPrivate_peAppearance
IntegerPrivate_peImageAlignment
IntegerPrivate_peStyle
IntegerPrivate_peTextAlignment
IntegerPrivate_peTextImageRelation
IntegerPrivate_piBackColor
IntegerPrivate_piBorderGap
IntegerPrivate_piForeColor
IntegerPrivate_piImageGap
NumberPrivate_pnFontSize
StringPrivate_psCaption
StringPrivate_psFontName
StringPrivate_psImage
StringPrivate_psTooltip

Functions and Procedures

IntegerAbsolute_GuiOrigin()
=========================================================================
IntegerAdd_Focus(Handle ohParent)
------------------------------------------------------------------------- Augment Add_Focus to update the visible state. This has to be done after the control has been painted to the screen
Construct_Object()
Inherited from cSigCjComPushButton
-------------------------------------------------------------------------
BooleanDefault_State()
*** Added by Nils G. Svedmyr *** 19 Nov 2010 To support standard dataflex button code
DoChangeTooltipStyle()
*** Change by Nils G. Svedmyr, 16th of November 2010 *** This sets the tooltip style of the button to the same as DAW's cToolTipController class,
IntegerEnabled_State()
Inherited from Shadow_Mixin
*** Added by Nils G. Svedmyr *** 19 Nov 2010 To support standard dataflex button code
KeyAction()
------------------------------------------------------------------------- Keyboard methods / events Handle Enter Key (OnKey message in Construct_Object)
StringLabel()
Inherited from DFLabel_Mixin
To support standard dataflex button code
MouseDown(Integer iButton Integer iShift Integer iX Integer iY)
Martin - Ditto - See comments for MouseMove Need to make sure the button can take the focus, i.e. exiting of the current focusable object is successful - this is a DAW bug where the focus is not being moved correctly when using the mouse to click the Codejock button
MouseMove(Integer iButton Integer iShift Integer iX Integer iY)
Martin - Toms' code uses OnMouseMove. The VDF 14.1 help shows this to be a valid method, but with different parameters. So I have changed the name to MouseMove. Also do we need an event for mouse move or can this just be coded in the OnComMouseMove? Augmented for Hot Tracking
MouseUp(Integer iButton Integer iShift Integer iX Integer iY)
Martin - Ditto - See comments for MouseMove After we click and the check if the click was valid. If it wasn't then force the client (view/panel etc.) to redraw where the focus currently is (the object we clicked from) else Move the focus back To where it came From If Pointer only AND the focus is on the button OR thinks it's where we came from. Note we need to activate the button and then the prior Object as DAW sometimes believes the focus can be two places at once.
OnClick()
Martin - Is KeyPress needed? If the button has the focus then the only valid key is entered and that is handled by the OnKey message. Any other navigation keys (esc arrows tab etc) should be handled by the vdf runtime. Procedure OnKeyPress Integer ByRef iKey End_Procedure Procedure OnComKeyPress Short ByRef llKeyAscii Send OnKeyPress llKeyAscii End_Procedure ------------------------------------------------------------------------- Mouse methods / events
OnComClick()
Inherited from cSigCjCom_DPushButtonEvents
OnComDropDown()
Inherited from cSigCjCom_DPushButtonEvents
OnComMouseDown(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)
Inherited from cSigCjCom_DPushButtonEvents
OnComMouseMove(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)
Inherited from cSigCjCom_DPushButtonEvents
OnComMouseUp(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)
Inherited from cSigCjCom_DPushButtonEvents
OnCreate()
Inherited from cComActiveXControl
BooleanpbBold()
BooleanpbChecked()
BooleanpbDefault()
BooleanpbDrawFocusRect()
BooleanpbEnabled()
BooleanpbEnableMarkup()
BooleanpbFlatStyle()
BooleanpbItalic()
BooleanpbMultiLine()
BooleanpbRightToLeft()
BooleanpbStrikethrough()
BooleanpbUnderline()
BooleanpbUseVisualStyle()
BooleanpbVisible()
IntegerpeAppearance()
IntegerpeImageAlignment()
IntegerpeStyle()
IntegerpeTextAlignment()
IntegerpeTextImageRelation()
IntegerpiBackColor()
IntegerpiBorderGap()
IntegerpiForeColor()
IntegerpiImageGap()
NumberpnFontSize()
StringpsCaption()
StringpsFontName()
StringpsImage()
StringpsTooltip()
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(String sName)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Number nSize)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer eAppearance)
Inherited from cSigCJMethods_Mixin
Set(Integer iColor)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer iGap)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(String sCaption)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(String sCaption)
Inherited from cSigCJMethods_Mixin
To support standard dataflex button code
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
*** Added by Nils G. Svedmyr *** 19 Nov 2010 To support standard dataflex button code
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer bState)
Inherited from cSigCJMethods_Mixin
*** Added by Nils G. Svedmyr *** 19 Nov 2010 To support standard dataflex button code
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer iColor)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer eAlign)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer iGap)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer eStyle)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer eAlign)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Integer ePosition)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bState)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(String sTooltip)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(String sImage)
Inherited from cSigCJMethods_Mixin
-------------------------------------------------------------------------
Set(Boolean bVisible)
Inherited from cSigCJMethods_Mixin
========================================================================= Some ActiveX controls do not honour the Visibe_State message event though they're in the parent class (this is one). So we need to use the low level windows message ShowWindow to hide/Show the button. We also need to change the focus mode so the button can't take the focus via keyboard navigation when invisible.

References (12):

ModuleContaining SymbolLine
Calendar_Resources.vwoOrder_Up_bn429
Calendar_Resources.vwoOrder_Down_bn452
SigCJProgressBarDemo_View.vwoSigCJPushButton_Standard23
SigCJProgressBarDemo_View.vwoSigCJPushButton_Smooth48
SigCJProgressBarDemo_View.vwoSigCJPushButton_Marquee74
SigCJPushButtonDemo.vwoSigCJPushButton113
SigCJPushButtonDemo.vwoSigCJPushButton224
SigCJPushButtonDemo.vwoSigCJPushButton338
SigCJReportControlDemo - Table.vwoSigCJPushButton1312
SigCJStandardCalendarDemo.vwoPreview_Bn65
SigCJStandardCalendarDemo.vwoPrint_Bn76
SigCJStandardCalendarDemo.vwoPrintSetup_bn87