The problem is the folder.
If I add the folder, the program work fine only the first time.
When I close the application, the task remains active (I must kill the process with Task Manager).
Code: Select all | Expand
// Using nested MODAL windows
#include "FWCE.ch"
function Main()
local oWnd
IF IsExeRunning( cFileName( HB_ArgV( 0 ) ) )
MsgInfo( "The application is already running" )
RETURN ( nil )
ENDIF
DEFINE WINDOW oWnd TITLE "1"
@ 2, 2 BUTTON "Another" OF oWnd SIZE 80, 20 ;
ACTION Another()
ACTIVATE WINDOW oWnd
return nil
function Another()
local oWnd, oFld
static nWindow := 2
DEFINE WINDOW oWnd TITLE Str( nWindow++ )
@ 0,-0.5 FOLDER oFld PROMPTS "One","Two" ;
DIALOGS "ONE","TWO" SIZE 247, 270 BOTTOM
REDEFINE BUTTON ID 101 OF oFld:aDialogs[1] ACTION Another()
oFld:aDialogs[1]:Move(0,0)
oFld:aDialogs[2]:Move(0,0)
oFld:InitDialogs()
//@ 2, 2 BUTTON "Another" OF oWnd SIZE 80, 20 ;
//ACTION Another()
ACTIVATE WINDOW oWnd MODAL
nWindow--
return nil
#ifdef _CE
#include "c:\vce\include\arm\windows.h"
#include "c:\vce\include\arm\commctrl.h"
#endif
ONE DIALOG 174, 80, 140, 142
STYLE 0x4L | WS_CHILD
{
PUSHBUTTON "Another", 101, 35, 49, 50, 14
}
TWO DIALOG 178, 88, 140, 142
STYLE 0x4L | WS_CHILD
{
}
Regards
Pier Luigi