Mouse Button on Side

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Mouse Button on Side

Post by Jimmy »

hi,

in Firefox or EDGE i can use Button which are "on Side" of Mouse to go Backward or Forward WebSite

did someone know how to "ask" if they are press under Fivewin :?:
greeting,
Jimmy
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Mouse Button on Side

Post by Jimmy »

hi,

have found out that
ALT + Cursor left
ALT + Cursor right
are doing same

so how to "use" it :idea:

Code: Select all | Expand

  CASE nCode == LVN_KEYDOWN
          nKey := LV_GETGRIDVKEY( nPtrNMHDR )
     IF nKey = 13
        IF ::bClick != nil
           EVAL( ::bClick, ::nOption, Self )
        ENDIF
     
     elseif nKey = "ALT + Cursor left" // which Constant to use ?

     ENDIF
greeting,
Jimmy
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Mouse Button on Side

Post by cnavarro »

Try with

Code: Select all | Expand

local lMenu    := GetKeyState( VK_MENU )

      if lMenu .and. nKey == ...
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Mouse Button on Side

Post by Jimmy »

hi

thx for Answer
it is not Keyboard so VK_* Constant will not work

i "just" want to say that it act like ATL + Cursor but it is Mouse
greeting,
Jimmy
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Mouse Button on Side

Post by Jimmy »

hi,

got to this Solution :D

Code: Select all | Expand

METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TGrid

   DO CASE
      CASE nMsg = WM_XBUTTONDOWN
         IF NLOWORD( nWParam ) = MK_XBUTTON1
            * MsgInfo("Go_PagePrior()")
            IF ! EMPTY(::bSideBack)
               EVAL(::bSideBack)
            ENDIF
         ELSEIF NLOWORD( nWParam ) = MK_XBUTTON2
            * MsgInfo("Go_PageNext()")
            IF ! EMPTY(::bSideNext)
               EVAL(::bSideNext)
            ENDIF
         ENDIF

   ENDCASE

RETURN ::Super:HandleEvent( nMsg, nWParam, nLParam )
greeting,
Jimmy
Post Reply