Dialog Mgt
Provides functions for easier handling of status dialog and progress bars in loops.
Object Definition
Object Type | Codeunit |
Object ID | 70327080 |
Object Name | QWETB Dialog Mgt |
Procedures
Name | Description |
---|---|
Close() | Closes the status window and clears all related progress values. |
InitProgressbar(Integer; Integer) | Initiate a progress bar. |
Open(Text) | Open the progress window with the specified text. |
SetBlockChar(Char) | Sets what character that should be used for the indeterminate progress bar. |
SetIndeterminateProgressbarLength(Integer) | Set the length of the "worm" of the indeterminate progress bar. |
SetIndeterminateProgressbarMaxLength(Integer) | Sets the maximum length of the indeterminate progress bar. |
SetIndeterminateProgressbarPadChar(Char) | Sets the character used for padding for the indeterminate progress bar |
SetUpdateInterval(Integer) | Set the interval in which the window will be updated. |
UpdateIndeterminateProgressbar(Integer) | Used to simulate an indeterminate progress bar. |
UpdateProgressbar(Integer) | Updates the progress of a progress bar. |
UpdateProgressbarAbs(Integer; Integer) | Updates the progress of a progress bar with a absolute number. |
UpdateProgressbarValue(Integer; Integer) | Updates the progress of a progress bar with a given value. |
UpdateText(Integer; Variant) | Updates the text of a container. |
UpdateText(Integer; Variant; Boolean) | Updates the text of a container. |
Remarks
See Microsoft Learn for more information on how a dialog is used.
Example
To loop a record and show progress:
if MyRecord.FindSet() then begin
DialogMgt.Open('@1@@@@@@@@@@@@@@@@@@@@@@\#2##############');
DialogMgt.InitProgressbar(1, MyRecord.Count());
DialogMgt.UpdateText(2, 'Started', true);
repeat
DialogMgt.UpdateProgressbar(1);
DialogMgt.UpdateText(2, 'Looping');
// Do something
until MyRecord.Next() = 0;
DialogMgt.Close();
end;
This documentation is generated from Smart Toolbox v27.0