cancelar botão contrário do mouse - tabs

Post Reply
MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

cancelar botão contrário do mouse - tabs

Post by MGA »

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

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
horacio
Posts: 1270
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Post by horacio »

podrias probar oTab : bRClicked := { || .t. }
saludos
MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Post by MGA »

horacio, não funciona:

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

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

SGS,

Puedes hacerlo como has indicado:

otabs:bRClicked := { || nil }

pero necesitas modificar la clase TTabs de esta forma:

Code: Select all

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
MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Post by MGA »

Obrigado Sr.Antonio!
ubiratanmga@gmail.com

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
Post Reply