🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #741

Re: Function Key Assignment

#741
From: EB
Date: Tue, 22 Jan 2008 17:49
25 lines
1706 bytes
Thank you for your response. I forgot to say that I use BCPPB 6.
Your suggetion works as long as the app is running. I want to run the app at 
start time and program the keys to stay even when the app exits.
EB

"Asger Joergensen" <junk@Asger-P.dk> wrote in message 
news:MPG.21ff1ab13c71ec1989a12@newsgroups.borland.com...
>
> 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: <47962d9c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4794bfd2$1@newsgroups.borland.com> <MPG.21ff1ab13c71ec1989a12@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: "EB" <elias.berelian@snet.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4794bfd2$1@newsgroups.borland.com> <MPG.21ff1ab13c71ec1989a12@newsgroups.borland.com>
Subject: Re: Function Key Assignment
Date: Tue, 22 Jan 2008 12:49:54 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 144.160.5.25
Message-ID: <47962d9c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201024412 144.160.5.25 (22 Jan 2008 09:53:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail