bAction of IDCANCEL Button
Posted: Thu Nov 23, 2017 9:44 am
Hello,
using the new version I see that the bAction of cancel button never happens, I created a code this re-create the problem:
I need to intercept the closing of the dialog ...
We are using the version 9.04 (for XP version) and that works...
using the new version I see that the bAction of cancel button never happens, I created a code this re-create the problem:
- Code: Select all Expand view
- #include <Fivewin.ch>
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd;
ON CLICK TEST()
RETURN NIL
STATIC FUNCTION TEST()
LOCAL oDlg, nID, oBtn
DEFINE DIALOG oDlg
nID := TControl():nInitID
TControl():nInitID := IDCANCEL-1
@ 1, 20 BUTTON oBtn PROMPT "Cancel"
TControl():nInitID := nID
oBtn:bAction := {|| WQout("never happends") }
oDlg:bValid := {|| WQout("never happends too"), .T. }
ACTIVATE DIALOG oDlg CENTER NOMODAL
RETURN NIL
I need to intercept the closing of the dialog ...
We are using the version 9.04 (for XP version) and that works...