I have a dialog that I create on startup and hide, because it is poped up in a taskbar menu when needed. When I press ESC in the dialog, it disappears and I cannot use the taskabar menu on the taskbar icon again. I have to quit the application with the taskmanager. Hiding the dialog with a button inside the dialog works without problems. I have checked if something happens in the _handler function and in the _hideapp() function, but nothing happens here when pressing ESC in the dialog, disappears without any debug message.
regards
Rudolf
Code: Select all
DCGETOPTIONS ;
NOBUSY ;
ABORTQUERY MSG {||_hideapp(getlist,"Abort")} ;
EXITQUERY MSG {||_hideapp(getlist,"Exit")} ;
CLOSEQUERY MSG {||_hideapp(getlist,"Close")} ;
QUITQUERY MSG {||_hideapp(getlist,"Quit")};
NORESIZE;
HIDE;
NOESCAPEKEY
DCREAD GUI OPTIONS GetOptions PARENT @oDialog SETAPPWINDOW title "Testversion" HANDLER _Handler
else
function _hidepp(aGetlist,cMod)
******************************************************************
dcqdebug cMod // no message on ESC
oDialog:hide()
return .t.
static function _handler(nEvent, mp1, mp2, oXbp, oDlg,aGetlist, aRef, lOk)
******************************************************************
dcqdebug nEvent,mp1,mp2 // no message on ESC
return .t.