|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > UserInterface > WaitDialogOpen |
Opens the wait dialog with a specified title and display a specified message
call DBWShell("WaitDialogOpen Title Message [Xleft, Ytop, Xsize, Ysize]")
Title |
It is the title for the dialog box |
|---|---|
Message |
It is the message to display |
Xleft |
Optional. Left coordinate for progress bar |
Ytop |
Optional. Top coordinate for progress bar |
Xsize |
Optional. Progress bar width |
Ysize |
Optional. Progress bar height |
![]()
When coordinates parameters are specified, a compat dialog is shown instead of the common one.
No Title or message are dispalyed in compact dialog.
WaitDialogClose
WaitDialogSetMessage
WaitDialogOpen
WaitDialogPoll
...
'get the totalCount number of records to read
...
actionCanceled = false
recCount = 0
DBWShell("WaitDialogOpen " & replace("Local Checkout Mode Database Synchronization"," ","|") & " " & replace("Synchronization in progress ..."," ","|") )
While recset.EOF = false and actionCanceled = false
= recset.Fields(0).Value
= recset.Fields(1).Value
...
DBWShell("WaitDialogPoll " & Clng((recCount*100)/totalCount) )
actionCanceled = DBWResult("@CANCELED")
DBWShell("WaitDialogSetMessage " & replace("Reading record #" & recCount," ","|"))
recCount = recCount+1
recSet.MoveNext
Wend
DBWShell("WaitDialogClose")
...
Here below it is the call for a compact dialog
...
DBWShell("WaitDialogOpen " & replace("Test"," ","|") & " " & replace("Test in progress ..."," ","|") & " 500,300,600,30" )
...