Thread: How to

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    20

    How to

    Hello everyone,

    I am using BCB, how do I assign a key on the keyboard to a button I created on the form?? e.g. I want to set the "B" key on the keyboard to a button on screen, when I press the "B" key, that button click.

    Thanks

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    look up keyboard accelerators in your help files....
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Here's one:
    IDR_ACCELERATOR1 ACCELERATORS DISCARDABLE
    BEGIN
    "A", ID_TESTKEY_A, VIRTKEY, NOINVERT
    END

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    20

    To Quantrizi

    Thanks for helping, but I really have no idea at all, what you put down. Would you mind explaining briefly? Like what is what.

    Thankx

Popular pages Recent additions subscribe to a feed