Class: cSigCJPushButton
{ OverrideProperty=Enabled_State DesignTime=False }
Class Hierarchy:
DFCOMACTIVEXCONTROL

cComActiveXControl


cSigCjComPushButton



cSigCJPushButtonMixins:
cSigCJMethods_Mixin,
Class Definition
Properties
Boolean
pbEnableHotTrack
Boolean
pbPointer_Only
---------------------------------------------------------------------
pbPointer_Only - Prevents the button from taking the focus
Handle
phoDropDownMenu
---------------------------------------------------------------------
Handle
phoReturn_Focus
phoReturn_Focus - Store the invoking object so focus can be returned if pointer only
Handle
phoToolTipController
Integer
piHotTrackColor
Handle
Private_hoFont
boolean
Private_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.
Boolean
Private_pbChecked
Boolean
Private_pbClick_Valid
Boolean
Private_pbDefault
Boolean
Private_pbDrawFocusRect
Boolean
Private_pbEnabled
Boolean
Private_pbEnableMarkup
Boolean
Private_pbFlatStyle
Boolean
Private_pbInDropDown
Boolean
Private_pbItalic
Boolean
Private_pbMultiLine
Boolean
Private_pbRightToLeft
Boolean
Private_pbStrikethrough
Boolean
Private_pbUnderline
Boolean
Private_pbUseVisualStyle
Boolean
Private_pbValue
Boolean
Private_pbVisible
Integer
Private_peAppearance
Integer
Private_peImageAlignment
Integer
Private_peStyle
Integer
Private_peTextAlignment
Integer
Private_peTextImageRelation
Integer
Private_piBackColor
Integer
Private_piBorderGap
Integer
Private_piForeColor
Integer
Private_piImageGap
Number
Private_pnFontSize
String
Private_psCaption
String
Private_psFontName
String
Private_psImage
String
Private_psTooltip
Functions and Procedures
Integer
Absolute_GuiOrigin()
=========================================================================
Integer
Add_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()
-------------------------------------------------------------------------
Boolean
Default_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,
Integer
Enabled_State()
*** 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)
String
Label()
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()

OnComDropDown()

OnComMouseDown(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)

OnComMouseMove(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)

OnComMouseUp(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)

OnCreate()
Boolean
pbBold()
Boolean
pbChecked()
Boolean
pbDefault()
Boolean
pbDrawFocusRect()
Boolean
pbEnabled()
Boolean
pbEnableMarkup()
Boolean
pbFlatStyle()
Boolean
pbItalic()
Boolean
pbMultiLine()
Boolean
pbRightToLeft()
Boolean
pbStrikethrough()
Boolean
pbUnderline()
Boolean
pbUseVisualStyle()
Boolean
pbVisible()
Integer
peAppearance()
Integer
peImageAlignment()
Integer
peStyle()
Integer
peTextAlignment()
Integer
peTextImageRelation()
Integer
piBackColor()
Integer
piBorderGap()
Integer
piForeColor()
Integer
piImageGap()
Number
pnFontSize()
String
psCaption()
String
psFontName()
String
psImage()
String
psTooltip()

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(String sName)
-------------------------------------------------------------------------

Set(Number nSize)
-------------------------------------------------------------------------

Set(Integer eAppearance)

Set(Integer iColor)
-------------------------------------------------------------------------

Set(Integer iGap)
-------------------------------------------------------------------------

Set(String sCaption)
-------------------------------------------------------------------------

Set(String sCaption)
To support standard dataflex button code

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
*** Added by Nils G. Svedmyr *** 19 Nov 2010
To support standard dataflex button code

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Integer bState)
*** Added by Nils G. Svedmyr *** 19 Nov 2010
To support standard dataflex button code

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Integer iColor)
-------------------------------------------------------------------------

Set(Integer eAlign)
-------------------------------------------------------------------------

Set(Integer iGap)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(Integer eStyle)
-------------------------------------------------------------------------

Set(Integer eAlign)
-------------------------------------------------------------------------

Set(Integer ePosition)
-------------------------------------------------------------------------

Set(Boolean bState)
-------------------------------------------------------------------------

Set(String sTooltip)
-------------------------------------------------------------------------

Set(String sImage)
-------------------------------------------------------------------------

Set(Boolean bVisible)
=========================================================================
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):