Results 1 to 19 of 19

Thread: [RESOLVED] [VB6] - test if alt acelerator key was activated

Threaded View

  1. #16
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [VB6] - test if alt acelerator key was activated

    The const value was given in previous post: ODS_NOACCEL = &H100

    When using AND, we are testing to see if the .ItemState contains the flag ODS_NOACCEL.
    If the result is zero, then the flag is not included and means 1 of 3 things

    1) The operating system is older than Win2K
    2) The user does not have the option set to hide the accelerator keys
    3) The user has the option set, and the keyboard initiated the menus not the mouse

    When the flag is not set, it simply means to draw the menu with the accelerator key
    Last edited by LaVolpe; Jun 26th, 2011 at 04:53 PM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width