IonicWind Software

Aurora Compiler => GUI => Topic started by: barry on January 15, 2007, 07:13:32 PM

Title: Messages for right click on a button
Post by: barry on January 15, 2007, 07:13:32 PM
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
Title: Re: Messages for right click on a button
Post by: ExMember001 on January 15, 2007, 07:42:25 PM
look here :
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmessages/wm_rbuttondown.asp?frame=true
Title: Re: Messages for right click on a button
Post by: ExMember001 on January 15, 2007, 07:58:31 PM
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 ;)
Title: Re: Messages for right click on a button
Post by: barry on January 15, 2007, 08:27:53 PM
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