Class: cSigCJTaskDialog
---------------------------------------------------
Class : cSigCJTaskDialog
Superclass : cSigCjComTaskDialog
Package : cSigCJTaskDialog.pkg
Mixins :
Description : The TaskDialog Control creates, displays, and operates a task dialog. A task dialog is similar to,
While much more flexible than, a basic message box. The task dialog contains application-defined messages,
title, verification check box, command links and push buttons, plus any combination of predefined icons
and push buttons.
Properties : pbShowWindowsExitButton (boolean)
psCollapsedControlText (string)
pbShowButtonOk (boolean)
pbShowButtonYes (boolean)
pbShowButtonNo (boolean)
pbShowButtonCancel (boolean)
pbShowButtonRetry (boolean)
pbShowButtonClose (boolean)
psContentText (string)
piDefaultButton (integer)
piDefaultRadioOption (integer)
piWidth (integer)
pbEnableCallbackTimer (boolean)
pbEnableCommandLinks (boolean)
pbEnableHyperLinks (boolean)
psExpandedControlText (string)
psExpandedInformationText (string)
pbExpandFooterArea (boolean)
piFooterIcon (integer)
psFooterIconImage (string)
psFooterText (string)
piMainIcon (integer)
psMainIconImage (string)
psMainInstructionText (string)
pbMessageBoxStyle (boolean)
phParentHwnd (handle)
piProgressBarPos (integer)
peProgressBarStyle (integer)
pbRelativePosition (boolean)
pbRtLLayout (boolean)
pbShowCommandLinkIcons (boolean)
pbUseComCtl32 (boolean)
psVerificationText (string)
pbVerifyCheckState (boolean)
psTitle (string)
Events : OnButtonClicked
OnHyperlinkClicked
OnRadioSelected
OnVerificationClicked
OnExpandButtonClicked
OnTimer
OnConstructed
OnCreate
Methods : ShowDialog
Set TaskDialogOptionButton
Set TaskDialogOptionRadio
Set pbButtonEnabledState
Set pbRadioOptionEnabledState
Reset
Set ProgressBarRange
StartProgressBarMarquee
Notes :
To Do :
---------------------------------------------------
Class Hierarchy:
DFCOMACTIVEXCONTROL

cComActiveXControl


cSigCjComTaskDialog



cSigCJTaskDialogMixins:
cSigCJMethods_Mixin,
Class Definition
Properties
Integer
piProcessCounter
Boolean
Private.pbCancelButton
Boolean
Private.pbCloseButton
Boolean
Private.pbEnableCallbackTimer
Boolean
Private.pbEnableCommandLinks
Boolean
Private.pbEnableHyperLinks
Boolean
Private.pbExpandFooterArea
Boolean
Private.pbExpandInfoTextByDefault
Boolean
Private.pbMessageBoxStyle
Boolean
Private.pbNoButton
Boolean
Private.pbOKButton
Boolean
Private.pbRelativePosition
Boolean
Private.pbRetryButton
Boolean
Private.pbRtLLayout
Boolean
Private.pbShowCommandLinkIcons
Boolean
Private.pbShowWindowsExitButton
Boolean
Private.pbUseComCtl32
Boolean
Private.pbVerifyCheckState
Boolean
Private.pbYesButton
Integer
Private.peCommonButtons
Integer
Private.peProgressBarStyle
Handle
Private.phParentHwnd
Integer
Private.piDefaultButton
Integer
Private.piDefaultRadioOption
Integer
Private.piFooterIcon
Integer
Private.piFooterIconHandle
Integer
Private.piMainIcon
Integer
Private.piMainIconHandle
Integer
Private.piProgressBarPos
Integer
Private.piWidth
String
Private.psCollapsedControlText
String
Private.psContentText
String
Private.psExpandedControlText
String
Private.psExpandedInformationText
String
Private.psFooterIconImage
String
Private.psFooterText
String
Private.psMainIconImage
String
Private.psMainInstructionText
String
Private.psTitle
String
Private.psVerificationText
Warning setting this to true on a vista or 2008 server will stop the modal state
Functions and Procedures

Base_Box(Handle hoDialog String sMessage String sTitle)

ClickButton(Integer iButtonID)
---------------------------------------------------
Procedure : ClickButton
Scope : Public Method
Paramaters : Integer iButtonID
Returns :
Purpose : Simulate the action of a button click in the task dialog
Notes :
---------------------------------------------------

Construct_Object()

End_Construct_Object()
Handle
Initialise()
Standard User interface functions

OnButtonClicked(Integer iButton_ID Boolean ByRef bCloseDialog)
---------------------------------------------------
Procedure : OnButtonClicked
Scope : Public Event
Paramaters : Integer iButton_ID Boolean ByRef bCloseDialog
Returns :
Purpose : Occurs when a user selects a button or command link in the task dialog
Notes :
---------------------------------------------------

OnComButtonClicked(Integer llId Variant llCloseDialog)

OnComConstructed()

OnComExpandButtonClicked(Boolean llExpanded)

OnComHyperlinkClicked(String llURL)

OnComRadioButtonClicked(Integer llId)

OnComTimer(Integer llMilliSeconds Variant llReset)

OnComVerificationClicked(Boolean llChecked)

OnConstructed()
---------------------------------------------------
Procedure : OnConstructed
Scope : Public Event
Paramaters :
Returns :
Purpose : Occurs once the task dialog has been created and before it is displayed.
Notes :
---------------------------------------------------

OnCreate()

OnExpandButtonClicked(Boolean bExpanded)
---------------------------------------------------
Procedure : OnExpandButtonClicked
Scope : Public Event
Paramaters : Boolean bExpanded
Returns :
Purpose : Occurs when the user clicks on the expand in the Task Dialog.
Notes :
---------------------------------------------------

OnHyperlinkClicked(String llURL)
---------------------------------------------------
Procedure : OnHyperlinkClicked
Scope : Public Event
Paramaters : String llURL
Returns :
Purpose : Occurs when a user clicks on a hyperlink in the Task Dialog's content
Notes :
---------------------------------------------------

OnRadioSelected(Integer iRadio_ID)
---------------------------------------------------
Procedure : OnRadioSelected
Scope : Public Event
Paramaters : Integer iRadio_ID
Returns :
Purpose : Occurs when a user selects a radio button in the task dialog.
Notes :
---------------------------------------------------

OnTimer(Integer iMilliSeconds Boolean ByRef bResetCounter)
---------------------------------------------------
Procedure : OnTimer
Scope : Integer iMilliSeconds Boolean ByRef bResetCounter
Paramaters : Boolean bStart Integer imilliseconds
Returns :
Purpose : This event is sent by the Task Dialog approximately every
200 milliseconds when the pbEnableCallbackTimer Property has been Set (to True).
Notes :
---------------------------------------------------

OnVerificationClicked(Boolean bChecked)
---------------------------------------------------
Procedure : OnVerificationClicked
Scope : Public Event
Paramaters : Boolean bChecked
Returns :
Purpose : Occurs when the user clicks on the task dialog's verification check box
Notes :
---------------------------------------------------
Boolean
pbEnableCallbackTimer()
Boolean
pbEnableCommandLinks()
Boolean
pbEnableHyperLinks()
Boolean
pbExpandFooterArea()
Boolean
pbExpandInfoTextByDefault()
Boolean
pbMessageBoxStyle()
Boolean
pbRelativePosition()
Boolean
pbRtLLayout()
Boolean
pbShowButtonCancel()
Boolean
pbShowButtonClose()
Boolean
pbShowButtonNo()
Boolean
pbShowButtonOk()
Boolean
pbShowButtonRetry()
Boolean
pbShowButtonYes()
Boolean
pbShowCommandLinkIcons()
Boolean
pbShowWindowsExitButton()
Boolean
pbUseComCtl32()
Boolean
pbVerifyCheckState()
Integer
peCommonButtons()
Integer
peProgressBarStyle()
Boolean
phParentHwnd()
Integer
piDefaultButton()
Integer
piDefaultRadioOption()
Boolean
piFooterIcon()
Boolean
piFooterIconHandle()
Boolean
piMainIcon()
Boolean
piMainIconHandle()
Integer
piProgressBarPos()
Integer
piWidth()
String
psCollapsedControlText()
String
psContentText()
String
psExpandedControlText()
String
psExpandedInformationText()
String
psFooterIconImage()
String
psFooterText()
String
psMainIconImage()
String
psMainInstructionText()
String
psTitle()
String
psVerificationText()

Reset()
---------------------------------------------------
Procedure : Reset
Scope : Public Method
Paramaters :
Returns :
Purpose : Resets the configuration attributes for the task dialog to the default state
Notes :
---------------------------------------------------

Set(String sImage)
{ MethodType=Method Visibility=Private }
Procedure SetTaskDialogProperty Handle hmPrivateProperty Handle hmCOMProperty Variant vValue
Set hmPrivateProperty to vValue
If (IsComObjectCreated(Self)) Begin
Set hmCOMProperty to vValue
End
End_Procedure

Set(String sImage)

Set(Boolean bState)

Set(String sText)

Set(Integer iButtons)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(String sText)

Set(Integer iButton)
{ EnumList="eBtn_OK, eBtn_Yes, eBtn_No, eBtn_Cancel, eBtn_Retry, eBtn_Close" }

Set(Integer iButton)

Set(Integer iWidth)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(String sText)

Set(String sText)

Set(Boolean bState)

Set(Integer iID)

Set(Integer iHandle)

Set(String sText)

Set(Integer iID)

Set(Integer iHandle)

Set(String sText)

Set(Boolean bState)

Set(Handle hParent)

Set(Integer iPos)

Set(Integer eStyle)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(Boolean bState)

Set(String sText)

Set(Boolean bState)

Set(String sTitle)

Set(String sButtonText Integer iButtonID)
---------------------------------------------------
Procedure : Set TaskDialogOptionButton
Scope : Public Method
Paramaters : sButtonText (string), iButtonID (integer)
Returns :
Purpose : Adds a user defined button to the task dialog's command area.
Example: Set TaskDialogOptionButton "Run" to 100
Set TaskDialogOptionButton "Don't Run" to 101
Notes : The iButtonID indicates the value to be returned when this button is selected and the
OnButtonClicked Event fires
---------------------------------------------------

Set(String sRadioText Integer iButtonID)
---------------------------------------------------
Procedure : Set TaskDialogOptionRadio
Scope : Public Method
Paramaters : sRadioText (string), iButtonID (integer)
Returns :
Purpose : Adds a user defined button to the task dialog's command area.
Example: Set TaskDialogOptionRadio "Allow" to 100
Set TaskDialogOptionRadio "Don't Allow" to 101
Notes : The iButtonID indicates the value to be returned when this button is selected and the
OnRadioSelected Event fires
---------------------------------------------------

Set(Integer iButtonID Boolean bState)
---------------------------------------------------
Procedure : Set pbButtonEnabledState
Scope : Public Method
Paramaters : Integer iButtonID Boolean bState
Returns :
Purpose : Sets the enabled_state for the specified button
Notes :
---------------------------------------------------

Set(Integer iRadioID Boolean bState)
---------------------------------------------------
Procedure : Set pbRadioOptionEnabledState
Scope : Public Method
Paramaters : Integer iRadioID Boolean bState
Returns :
Purpose : Sets the enabled_state for the specified radio option
Notes :
---------------------------------------------------

Set(Integer iMin Integer iMax)
---------------------------------------------------
Procedure : ProgressBarRange
Scope : Public Method
Paramaters : Integer iMin Integer iMax
Returns :
Purpose : Sets the minimum and maximum values for the progress bar
Notes : By default the min is zero and the max is 100
---------------------------------------------------

SetCommonButtons()
Integer
ShowDialog()
---------------------------------------------------
Procedure : ShowDialog
Scope : Public Method
Paramaters : None
Returns : Integer
Purpose : Displays the task dialog and return the selected button (id) when done
Notes :
---------------------------------------------------

sigCJInfo_Box(String sMessage String sTitle)

sigCJStop_Box(String sMessage String sTitle)

sigCJWarning_Box(String sMessage String sTitle)
Integer
sigCJYesNo_Box(String sMessage String sTitle Integer eBtn)
Integer
sigCJYesNoCancel_Box(String sMessage String sTitle Integer eBtn)

StartProgressBarMarquee(Boolean bStart Integer imilliseconds)
---------------------------------------------------
Procedure : StartProgressBarMarquee
Scope : Public Method
Paramaters : Boolean bStart Integer imilliseconds
Returns :
Purpose : Specifies whether the progress bar should be displayed in marquee mode or not with the ability to
determine marquee speed as well
Notes : peProgressBarStyle must first be set to eTaskProgressBar_Marquee and StartProgressBarMarquee
must be called in the OnConstructed event before it can be turned on or off.
After StartProgressBarMarquee is called in the OnConstructed event you can freely Use StartProgressBarMarquee
anytime to start and stop the marquee.
---------------------------------------------------
References (1):