April 25, 2024, 06:21:32 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Messages for right click on a button

Started by barry, January 15, 2007, 07:13:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

barry

I'd like to be able to distinguish between a left and right click on a button.  I see how to do it on part of the client area, a rectangle, etc, but not how to detect a click or left click on a button.  Is there an easy way to do this?  Or should I just use a rectangular area instead of a button?  I can do either one but it seemed that using a button would be simpler.

Barry


ExMember001

or try this ;)


#define WM_RBUTTONDOWN 0x0204
theapp::OnControl(int nID, int nNotifyCode, unsigned int hControl),int
{
    select nid
    {
         case mybutton:
              if nNotifycode = WM_RBUTTONDOWN
              {
                  //do something
              }
    }
    return false;
}


i've not test it, but it should show you the way ;)

barry

I just realized I posted this in the wrong forum.  It's an Ebasic question.  I'll re-post it in there.  But I'll also look at your code and see if it gives me any clues.

Thanks,
Barry