I use the ASCII(key) value as a dictionary key, and I pass the value  
of that dictionary entry as a parameter to a function.

ie. In a keydown event

If dictionary.haskey(ascii(key)) then programmableFunction 
(dictionary.value(asci(key)).stringvalue)

Programmable function executes code in a case/end case tree based on  
the value of the passed parameter

Reprogramming keys is as simple as saying

Dictionary.value(ascii(key)) = "customParamter"

in a keyDown event.

Cheers,
Tom



On 04/03/2007, at 2:21 PM, Brian Heibert wrote:

> How would I go about making a button that can be programmable by the
> user in my application?
> I would want to do this with several buttons actually
> I would want some options the user can use
>
> 1) Quit
> 2) Back
> 3) Forward
> 4) Goto
> etc.
>
>
> Brian Heibert
> Heibert Scan, Copy & Printing
> Web: http://www.heibertscancopyprinting.com
> Email:  [EMAIL PROTECTED]
> Email: [EMAIL PROTECTED]
> Phone:  (765) 742-4648
> Fax:  1-888-243-0853
>
>
>
>
>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Reply via email to