Thread: & thing in button text

  1. #1

    & thing in button text

    What does the & do in this case:

    CONTROL "&Enter data", -1, "BUTTON" blah blah...

    I don't notice any difference when I use and don't use it. Thanks.

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    & is used in menu resources to underline the letter immediately after the symbol so that the user can select the option by typing that letter instead of the amazingly strenuous task of moving the mouse an inch or so.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  3. #3
    Oh cool, thanks

  4. #4
    Registered User WayTooHigh's Avatar
    Join Date
    Aug 2001
    it also makes it possible to push a button by pressing Alt+*. where * is the letter thats underlined.

    for example: if your button had text like this...


    pressing Alt+w would push the button.
    Sometimes, the farthest point from the center is the center itself.

    Your life is your canvas, it's only as beautiful as you paint it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 05-25-2005, 01:50 PM
  2. little text thing that is above your avatar
    By canine in forum A Brief History of
    Replies: 3
    Last Post: 08-31-2002, 07:12 PM
  3. Radio button linked to text box
    By J_Bravo in forum Windows Programming
    Replies: 9
    Last Post: 05-07-2002, 10:15 PM
  4. Accessing a Specific Text Line Inside CEditView :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-14-2002, 08:12 PM