Results 1 to 3 of 3

Thread: Button Always Active

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    12

    Button Always Active

    I've developed an application that has a main form at the bottom of the screen with command buttons as a custom menu. This is not an MDI application. All forms are shown off this form as modal forms.

    However, now I would like to have one of the buttons always active. For example, this button may be used to toggle to another application, so I want the user to be able to press it at any time. But, the other menu buttons should remain disabled.

    I thought I saw some API calls that allowed the button to be pressed at any time while the application was active but cannot find the code.

    Any ideas?

    Thanks,
    Greg

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    You wouldn't necessarily have to "press" the button. You could call its click event from whereever.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    12
    I realize I can call the click event, but it would have to be in response to the user clicking the mouse on the button. If this button is not active then there is nothing to trigger an event. I tried using the second form's mouseup event, but it only captures clicks within the window not the menu bar below.

    Any other ideas?

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