Subject: | Re: Disable Function Keys
| Date: | Thu, 23 Jun 2022 22:19:06 -0800
| From: | Peter <peterspammenot@whiteknight.email>
| Newsgroups: | pnews.paradox-programming
|
Excellent, thanks Tom.
On 06/23/2022 07:47 p.m., Tom Krieg wrote:
> if eventInfo.vCharCode() > 111 AND eventInfo.vCharCode() < 124 then
> disableDefault
> endif
>
> On 24/06/2022 12:23 pm, Peter wrote:
>> Is there a way to disable the "F" keys, e.g. [F2], [F3] with one
>> command rather than trapping for each action such as
>>
>> method action(var eventinfo ActionEvent)
>>
>> ;//disable all "F" keys except [F1]
>> switch
>> case eventInfo.id() = FieldGroupBackwards: ;//[F3]
>> eventInfo.setErrorCode(1)
>>
>> case eventInfo.id() = FieldGroupForward: ;//[F4]
>> eventInfo.setErrorCode(1)
>>
>> case eventInfo.id() = DataTableView: ;//[F7]
>> eventInfo.setErrorCode(1)
>>
>> ;//7 more "F" keys
>> endSwitch
>>
>> Thank you.
|