NOESCAPEKEY

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

NOESCAPEKEY

#1 Post by c-tec »

Hello Roger,
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.

Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: NOESCAPEKEY

#2 Post by c-tec »

Hello,
problem solved, I have rewritten the logic
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply