---------------------------------------------------
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 :
---------------------------------------------------
Construct_Object()
End_Construct_Object()
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
- Integer
iImageID - Integer
hWnd
- String
psMainIconImage()
Set(String sImage)
- Integer
iImageID - Integer
hWnd
- String
psFooterIconImage()
Set(Boolean bState)
- Boolean
pbShowWindowsExitButton()
Set(String sText)
- String
psCollapsedControlText()
Set(Integer iButtons)
- Integer
peCommonButtons()
Set(Boolean bState)
- Boolean
pbShowButtonOk()
Set(Boolean bState)
- Boolean
pbShowButtonYes()
Set(Boolean bState)
- Boolean
pbShowButtonNo()
Set(Boolean bState)
- Boolean
pbShowButtonCancel()
Set(Boolean bState)
- Boolean
pbShowButtonRetry()
Set(Boolean bState)
- Boolean
pbShowButtonClose()
SetCommonButtons()
Set(String sText)
- String
psContentText()
Set(Integer iButton)
{ EnumList="eBtn_OK, eBtn_Yes, eBtn_No, eBtn_Cancel, eBtn_Retry, eBtn_Close" }
- Integer
piDefaultButton()
Set(Integer iButton)
- Integer
piDefaultRadioOption()
Set(Integer iWidth)
- Integer
piWidth()
Set(Boolean bState)
- Boolean
pbEnableCallbackTimer()
Set(Boolean bState)
- Boolean
pbEnableCommandLinks()
Set(Boolean bState)
- Boolean
pbEnableHyperLinks()
Set(Boolean bState)
- Boolean
pbExpandInfoTextByDefault()
Set(String sText)
- String
psExpandedControlText()
Set(String sText)
- String
psExpandedInformationText()
Set(Boolean bState)
- Boolean
pbExpandFooterArea()
Set(Integer iID)
- Boolean
piFooterIcon()
Set(Integer iHandle)
- Boolean
piFooterIconHandle()
Set(String sText)
- String
psFooterText()
Set(Integer iID)
- Boolean
piMainIcon()
Set(Integer iHandle)
- Boolean
piMainIconHandle()
Set(String sText)
- String
psMainInstructionText()
Set(Boolean bState)
- Boolean
pbMessageBoxStyle()
Set(Handle hParent)
- Boolean
phParentHwnd()
Set(Integer iPos)
- Integer
piProgressBarPos()
Set(Integer eStyle)
- Integer
peProgressBarStyle()
Set(Boolean bState)
- Boolean
pbRelativePosition()
Set(Boolean bState)
- Boolean
pbRtLLayout()
Set(Boolean bState)
- Boolean
pbShowCommandLinkIcons()
Set(Boolean bState)
- Boolean
pbUseComCtl32()
Set(String sText)
- String
psVerificationText()
Set(Boolean bState)
- Boolean
pbVerifyCheckState()
Set(String sTitle)
- String
psTitle()
- 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 :
---------------------------------------------------
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
---------------------------------------------------
- Boolean
bIsCreated
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
---------------------------------------------------
- Boolean
bIsCreated
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 :
---------------------------------------------------
- Boolean
bIsCreated
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 :
---------------------------------------------------
- Boolean
bIsCreated
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 :
---------------------------------------------------
- Boolean
bIsCreated
Reset()
---------------------------------------------------
Procedure : Reset
Scope : Public Method
Paramaters :
Returns :
Purpose : Resets the configuration attributes for the task dialog to the default state
Notes :
---------------------------------------------------
- Boolean
bIsCreated
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
---------------------------------------------------
- Boolean
bIsCreated
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.
---------------------------------------------------
- Boolean
bIsCreated
OnCreate()
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 :
---------------------------------------------------
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 :
---------------------------------------------------
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 :
---------------------------------------------------
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 :
---------------------------------------------------
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 :
---------------------------------------------------
OnConstructed()
---------------------------------------------------
Procedure : OnConstructed
Scope : Public Event
Paramaters :
Returns :
Purpose : Occurs once the task dialog has been created and before it is displayed.
Notes :
---------------------------------------------------
OnComButtonClicked(Integer llId Variant llCloseDialog)
OnComHyperlinkClicked(String llURL)
OnComRadioButtonClicked(Integer llId)
OnComVerificationClicked(Boolean llChecked)
OnComExpandButtonClicked(Boolean llExpanded)
OnComTimer(Integer llMilliSeconds Variant llReset)
OnComConstructed()
- Handle
Initialise()
Standard User interface functions
- Integer
hoDialog
Base_Box(Handle hoDialog String sMessage String sTitle)
sigCJInfo_Box(String sMessage String sTitle)
- Integer
iRetval - Integer
hoDialog
sigCJWarning_Box(String sMessage String sTitle)
- Integer
iRetval - Integer
hoDialog
sigCJStop_Box(String sMessage String sTitle)
- Integer
iRetval - Integer
hoDialog
- Integer
sigCJYesNo_Box(String sMessage String sTitle Integer eBtn)
- Integer
iRetval - Integer
hoDialog
- Integer
sigCJYesNoCancel_Box(String sMessage String sTitle Integer eBtn)
- Integer
iRetval - Integer
hoDialog