FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Detecting a right mouse click
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Detecting a right mouse click
Posted: Sun Aug 10, 2025 08:09 AM

Hi,

The control has bRClicked and bGotFocus. If I make a right click, then the contents of bRClicked will not be executed, but bGotFocus will be executed. That is, somehow I need to find out in this bGotFocus that there was a right click earlier.

Is it possible??

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Detecting a right mouse click
Posted: Sun Aug 10, 2025 08:57 AM

GetAsyncKeyState(VK_RBUTTON) & 0x8000 // is the mouse right button pressed ?

What control class is it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Detecting a right mouse click
Posted: Sun Aug 10, 2025 10:42 AM

Thanks a lot, Antonio! I was working with the TMultiGet class

Continue the discussion