Article View: borland.public.cppbuilder.nativeapi
Article #735Re: Function Key Assignment
From: Asger Joergensen
Date: Mon, 21 Jan 2008 20:10
Date: Mon, 21 Jan 2008 20:10
18 lines
1204 bytes
1204 bytes
Hi EB EB says: > I'd like to set up function keys, F1, F2, etc so that with one click a > command is executed. For example press F1 and you go to a URL. > Thanks for any help. Set KeyPreview = true; on the form and then You can examine the Key in the form keydown event and act accordingly. if(Key == VK_F1) ShellExecute...... Kind regards Asger
Technical Details
Message-ID:
<MPG.21ff1ab13c71ec1989a12@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4794bfd2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,acea03e5940c9866 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Asger Joergensen <junk@Asger-P.dk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Function Key Assignment Date: Mon, 21 Jan 2008 21:10:47 +0100 Message-ID: <MPG.21ff1ab13c71ec1989a12@newsgroups.borland.com> References: <4794bfd2$1@newsgroups.borland.com> Organization: Asger-P MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 NNTP-Posting-Host: 83.73.201.25 X-Trace: newsgroups.borland.com 1200946244 83.73.201.25 (21 Jan 2008 12:10:44 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail