cancelar botão contrário do mouse - tabs

cancelar botão contrário do mouse - tabs

Postby MGA » Wed Mar 05, 2008 6:53 pm

Amigos, como cancelar o botão contrario do mouse em uma TAB

tentei assim:

otabs:bRClicked := { || ( NIL ) }


mais não funciona.

Obrigado
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1247
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Postby horacio » Wed Mar 05, 2008 7:56 pm

podrias probar oTab : bRClicked := { || .t. }
saludos
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Postby MGA » Wed Mar 05, 2008 8:41 pm

horacio, não funciona:

oTab:bRClicked := { || .f. }
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1247
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Postby Antonio Linares » Wed Mar 05, 2008 9:53 pm

SGS,

Puedes hacerlo como has indicado:

otabs:bRClicked := { || nil }

pero necesitas modificar la clase TTabs de esta forma:
Code: Select all  Expand view
METHOD RButtonDown( nRow, nCol, nFlags ) CLASS TTabs

   local oMenu, n, l2007 := .f.

   if ::lDrag
      return Super:LButtonDown( nRow, nCol, nFlags )
   else
      if ( n := ::nOverPrompt( nRow, nCol ) ) > 0
         if ::bRClicked != nil
            Eval( ::bRClicked, nRow, nCol, nFlags, Self, n )
         endif
      elseif ::bRClicked != nil  // new !!!
         Eval( ::bRClicked, nRow, nCol, nFlags, Self, 0 ) // new !!!
      else
         if ( ::oWnd:oBottom == Self .or. ::oWnd:oLeft == Self .or. ;
              ::oWnd:oTop == Self .or. ::oWnd:oRight == Self )
...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42052
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby MGA » Thu Mar 06, 2008 11:24 am

Obrigado Sr.Antonio!
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1247
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Cgallegoa, Google [Bot] and 77 guests