Ed,
Years ago I asked the same thing, and I got some code from Jerry Brightbill. It is also in the Code Archive. The following function, "Pleasewait" displays a modeless dialog across the screen, see attached.
I set it up to display my message before I execute involved routines, or jump to sub applications, then when done, I just shut it off.
Call:
Code:
pleasewait(.T.,"YOUR MESSAGE HERE")
Close:
Code:
'Date Created: 07-Apr-2003 01:05:10 PM
'Last Updated: 27-Sep-2005 02:59:29 PM
'Created By : Jerry Brightbill
'Updated By : Tom Henkel
FUNCTION PleaseWait AS C (Show = .F.,what = "" )
'DESCRIPTION: This function displays a 'Please Wait' dialog for use while processing.
'What is an optional parameter that will be displayed along with the words "Please Wait"
PleaseWait = ""
if show = .F.
if ui_modeless_dlg_exist("Processing")
ui_modeless_dlg_close("Processing")
end if
exit function
end if
text1 = what+" Please Wait"
if what = ""
len = len(text1)*2.5
else
len = len(text1)*2
end if
textbox="{text="+alltrim(str(len))+"text1}"
box_code = <<%dlg%
{background=Pale Yellow}
{font=arial,12,bi}
{include=textbox}
%dlg%
box_event = <<%code%
1=1
%code%
ui_modeless_dlg_box("Processing",box_code,box_event)
ui_dlg_move("Processing", 2, 2.5)
ui_modeless_dlg_setfocus("Processing")
ui_modeless_dlg_refresh("Processing")
END FUNCTION
Thanks again, Jerry...
Hope this helps.
Tom
Bookmarks