1. Default cancel button
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 07, 2003
- 436 views
In the same way that you can use DefPushButton or BS_DEFPUSHBUTTON to make a button respond to return anywhere in the window, is there a way to do the same for escape? (in win32lib) Looking on google, all I can find is VB has a cancel property that you set to true, can the same effect be achieved in Euphoria? Pete
2. Re: Default cancel button
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 07, 2003
- 427 views
----- Original Message ----- From: "Pete Lomax" <petelomax at blueyonder.co.uk> To: "EUforum" <EUforum at topica.com> Subject: Default cancel button > > > In the same way that you can use DefPushButton or BS_DEFPUSHBUTTON to > make a button respond to return anywhere in the window, is there a way > to do the same for escape? (in win32lib) > > Looking on google, all I can find is VB has a cancel property that you > set to true, can the same effect be achieved in Euphoria? I did implement that in v0.56 but that never made it into the current version. Sorry about that. I'll redo it. In the meantime, you can simulate it by handling the KeyDown event for Screen and checking for the VK_ESCAPE key. -- Derek
3. Re: Default cancel button
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 08, 2003
- 487 views
On Fri, 08 Aug 2003 07:26:39 +1000, Derek Parnell <ddparnell at bigpond.com> wrote: >In the meantime, you can simulate it by handling the KeyDown event for = Screen and checking for the VK_ESCAPE key. LOL, I know: SetHandler({RadioRct,RadioBmp,RadioTxt, PenFld,GetEdit(StyleFld), ChkbxBld,ChkbxItl,ChkbxStr,ChkbxUln, RptFld,VarSet,VarNo, FileFld,GetEdit(ColorFld),FontBtn,GrpFld, GrSclBar,GetEdit(PaintFld), FFmtFld,FieldFld,NameFld,DFmtFld,ExprFld, OKBtn,DefBtn,FCanBtn,AddBtn,CanBtn, DctWin,StdWin,ClcWin,SumWin,RecWin,FunWin,BmpWin,NewWin, DctMle,StdMle,ClcMle,SumMle,RecMle,FunMle,BmpMle}, w32HKeyDown,routine_id("onKeyHelp")) Sorry, CNR ) Pete