Article View: borland.public.cppbuilder.nativeapi
Article #13552Re: Responding to mouse 'browser back' button.
From: Andrue Cope
Date: Thu, 09 Oct 2003 09:23
Date: Thu, 09 Oct 2003 09:23
23 lines
1658 bytes
1658 bytes
I've found the answer. Windows uses the left/right arrow keys in
conjunction with ALT as shortcuts for browser back/forward.
The following code should therefore display "Wibble" when you press any
key/button/rabbit that you can normally use for "browser back" :)
void __fastcall TForm1
::FormKeyDown(TObject *Sender, WORD &Key,
TShiftState Shift)
{
switch( Key )
{
case VK_LEFT:
if( Shift.Contains( ssAlt ) )
ShowMessage( "Wibble" );
break;
}
}
--
Andrue Cope
[Bicester, UK]
Technical Details
Message-ID:
<3f852918@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!rip!news.webusenet.com!peer01.cox.net!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f82931e$1@newsgroups.borland.com> <3f82f592$1@newsgroups.borland.com> <3f83c439@newsgroups.borland.com> <3f844c43@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d54ab0017dc05781 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-09 02:27:31 PST From: "Andrue Cope" <no.spam@spammy.com> Subject: Re: Responding to mouse 'browser back' button. Newsgroups: borland.public.cppbuilder.nativeapi References: <3f82931e$1@newsgroups.borland.com> <3f82f592$1@newsgroups.borland.com> <3f83c439@newsgroups.borland.com> <3f844c43@newsgroups.borland.com> Organization: Vogon International User-Agent: XanaNews/1.15.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <3f852918@newsgroups.borland.com> Date: 9 Oct 2003 02:23:36 -0700 X-Trace: newsgroups.borland.com 1065691416 217.207.223.34 (9 Oct 2003 02:23:36 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!rip!news.webusenet.com!peer01.cox.net!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail