1. 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?

Pete

new topic     » topic index » view message » categorize

2. Re: Default cancel button

----- 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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Default cancel button

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  blink)

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu