Jul 2, 2001 #1 reinaldo Programmer Mar 29, 2001 31 US I have a form (Dialog Box) called "Print" , can someone tell me how to close the form using the escape key? thank you
I have a form (Dialog Box) called "Print" , can someone tell me how to close the form using the escape key? thank you
Jul 3, 2001 2 #2 ros Programmer Jun 7, 2001 56 US Edit the forms keyphysical event: method keyPhysical(var eventInfo KeyEvent) if eventInfo.isPreFilter() then ;// This code executes for each object on the form else ;// This code executes only for the form if eventinfo.vcharcode() = VK_ESCAPE then self.close() endif endIf endMethod Richie Upvote 0 Downvote
Edit the forms keyphysical event: method keyPhysical(var eventInfo KeyEvent) if eventInfo.isPreFilter() then ;// This code executes for each object on the form else ;// This code executes only for the form if eventinfo.vcharcode() = VK_ESCAPE then self.close() endif endIf endMethod Richie