realbasic-nug
[Top] [All Lists]

Re: Function Key

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Function Key
From: Arnaud Nicolet <arnaud at tribu dot ch>
Date: Mon, 30 Jul 2007 14:19:00 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <46AD9E4F dot 6010106 at blueyonder dot co dot uk>
Le 30 juil. 07 à 10:16 Matin, Trisha Duke a écrit:

> hi everyone,
>
> i am interested to put some function key like F1 to F12 into my
> application. How do i go about this??

You have several choices.
You can assign function keys to menu item (not a Mac standard, however).
Also, you can detect them in the KeyDown event of a window, an  
editfield, a listbox or a canvas.

Else, you can use a timer to detect when the Keyboard.AsyncKeyDown 
(122) (for instance) returns true.

On Mac OS X, you can also create a Carbon call to register some keys  
(globally: whatever application is currently active, your app  
receives the keypress you had registered).
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>