🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Accelerator problem

#12809
From: Bob Gonder
Date: Tue, 18 Nov 2003 16:49
19 lines
1742 bytes
Martin Golm wrote:

>I'm converting an OWL application to a WinAPI-only application. That OWL
>app has an accelerator table with (I guess) some unusual accelerator
>shortcuts: It uses the shift key and a char key as a shortcut, for
>instance 'E' (Shift + 'e'). Now, when I try to use these
>shift-plus-char-shortcuts in the new WinAPI app, they don't work. Though
>it would be possible to handle them in WM_CHAR, it would mean to
>re-write quite a lot of code.
>Any way to get the OWL behaviour into my WinAPI app?

Did you read the help on Accelerators?  It looks like an ACCEL struct
like this should work

ACCEL	ATable[] = {
		{FSHIFT,'e' /*maybe 'E'*/, CMD_SHIFT_E},
		{next accelerator}  };
But maybe you would need to also use FVIRTKEY
		{FSHIFT|FVIRTKEY,  VK_E, CMD_SHIFT_E},
Technical Details
Message-ID: <fuikrvgrdsp042504lu6f3fd3j5tjkusd2@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3FB9EAE1.5F926FDC@gmx.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8cdb742028ceffaf
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-18 09:10:10 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Accelerator problem
Date: Tue, 18 Nov 2003 08:49:17 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <fuikrvgrdsp042504lu6f3fd3j5tjkusd2@4ax.com>
References: <3FB9EAE1.5F926FDC@gmx.de>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.169
X-Trace: newsgroups.borland.com 1069174158 67.31.165.169 (18 Nov 2003 08:49:18 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail