Construct_Object()
-------------------------------------------------------------------------
OnCreate()
- Integer
hoFont
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
hoTooltip - Integer
hoToolTipController - Variant
vTooltip - Integer
iIcon - Integer
iStyle - Integer
iWidth - Boolean
bBaloon - String
sTitle
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbBold()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbItalic()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbStrikethrough()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbUnderline()
Set(String sName)
-------------------------------------------------------------------------
- String
psFontName()
Set(Number nSize)
-------------------------------------------------------------------------
- Number
pnFontSize()
Set(Integer eAppearance)
- Integer
peAppearance()
Set(Integer iColor)
-------------------------------------------------------------------------
- Integer
piBackColor()
Set(Integer iGap)
-------------------------------------------------------------------------
- Integer
piBorderGap()
Set(String sCaption)
-------------------------------------------------------------------------
- String
psCaption()
Set(String sCaption)
To support standard dataflex button code
- String
Label()
To support standard dataflex button code
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbChecked()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbDefault()
Set(Boolean bState)
*** Added by Nils G. Svedmyr *** 19 Nov 2010
To support standard dataflex button code
- Boolean
Default_State()
*** Added by Nils G. Svedmyr *** 19 Nov 2010
To support standard dataflex button code
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbDrawFocusRect()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbEnabled()
Set(Integer bState)
*** Added by Nils G. Svedmyr *** 19 Nov 2010
To support standard dataflex button code
- Integer
Enabled_State()
*** Added by Nils G. Svedmyr *** 19 Nov 2010
To support standard dataflex button code
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbEnableMarkup()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbFlatStyle()
Set(Integer iColor)
-------------------------------------------------------------------------
- Integer
piForeColor()
Set(Integer eAlign)
-------------------------------------------------------------------------
- Integer
peImageAlignment()
Set(Integer iGap)
-------------------------------------------------------------------------
- Integer
piImageGap()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbMultiLine()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbRightToLeft()
Set(Integer eStyle)
-------------------------------------------------------------------------
- Integer
peStyle()
Set(Integer eAlign)
-------------------------------------------------------------------------
- Integer
peTextAlignment()
Set(Integer ePosition)
-------------------------------------------------------------------------
- Integer
peTextImageRelation()
Set(Boolean bState)
-------------------------------------------------------------------------
- Boolean
pbUseVisualStyle()
Set(String sTooltip)
-------------------------------------------------------------------------
- String
psTooltip()
Set(String sImage)
-------------------------------------------------------------------------
- Integer
iImageId - Variant
vImage
- String
psImage()
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.
- Integer
iVoid
- Boolean
pbVisible()
- 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
- Integer
iVoid - Integer
iRetval
KeyAction()
-------------------------------------------------------------------------
Keyboard methods / events
Handle Enter Key (OnKey message in Construct_Object)
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()
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
OnComMouseMove(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)
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
- Integer
iRetval
OnComMouseDown(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)
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.
OnComMouseUp(Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY)
- Integer
Absolute_GuiOrigin()
=========================================================================
- Integer
hWnd - Integer
iRow - Integer
iCol - Integer
iVoid - Integer
iLocation - String
sRect - Integer
P_sRect
OnComDropDown()
- Integer
iLoc - Integer
iSize