In my program I have a routine to import some files.
I want to show on the dialog the file that I'm importing.
It's working fine, until the customer select another window/program.
That the text is not updated anymore. The rest is working.
The problem is that the customer thinks that the program is stopping importing.
Here is a sample-file to show the problem.
test.rc
- Code: Select all Expand view
- 1 24 "C:/_vmsdata/FWH64/fwh64/samples/WinXP/WindowsXP.Manifest64"
IMPORTFILES DIALOG 44, 33, 149, 92
EXSTYLE WS_EX_DLGMODALFRAME
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Import Files"
FONT 8, "MS Sans Serif"
{
CONTROL "Info", -1, "button", BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 8, 8, 129, 32
CONTROL "xxxxxxxxxxxxxxxxxx", 502, "static", SS_CENTER | WS_CHILD | WS_VISIBLE | WS_GROUP, 15, 22, 114, 8
CONTROL "Start", 1000, "button", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 40, 44, 61, 34
}
test.prg
- Code: Select all Expand view
- #include "FiveWin.Ch"
static oSay
static sText
func test()
local oDlg
sText := 'Press Start'
DEFINE DIALOG oDlg RESOURCE "IMPORTFILES"
REDEFINE SAY oSay PROMPT sText ID 502 OF oDlg
REDEFINE BUTTON ID 1000 OF oDlg ACTION (startimport(),oDlg:end())
ACTIVATE DIALOG oDlg CENTERED
return
func startimport()
local i
FOR i = 1 to 30
sText = 'File '+str(i,2,0)
oSay:refresh()
inkey(1)
NEXT
return
Is there a way that the update still works after selecting another program?