Hello All,
I have a NoWait Dialog... How to determine if mouse click is outside the Dialog?
Regards,
Fraxzi
fraxzi wrote:I test it with Modal too but not what I desired.
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
oDlg:bLostFocus = { || oDlg:End() }
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
Enrico Maria Giordano wrote:This sample works fine here:
- Code: Select all Expand view
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
oDlg:bLostFocus = { || oDlg:End() }
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
EMG
ACTIVATE DIALOG oDlg NoWait;
CENTER
fraxzi wrote:but if modal :
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd;
ON INIT TEST( oWnd )
RETURN NIL
FUNCTION TEST( oWnd )
LOCAL oDlg
DEFINE DIALOG oDlg;
RESOURCE "TEST"
oDlg:bLostFocus = { || oDlg:End(), oWnd:End() }
ACTIVATE DIALOG oDlg NOMODAL;
CENTER
RETURN NIL
TEST DIALOG 6, 15, 207, 111
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Test"
FONT 8, "MS Sans Serif"
{
}
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 92 guests