Move metropanel

Move metropanel

Postby Natter » Fri May 06, 2016 1:26 pm

Hi, all !

Metropanel is possible to move right/left with the mouse or finger. How can you do that with arrows ?
Natter
 
Posts: 1144
Joined: Mon May 14, 2007 9:49 am

Re: Move metropanel

Postby Antonio Linares » Fri May 06, 2016 5:58 pm

Add these lines in touch.prg example:

Code: Select all  Expand view
  oWnd:bMouseWheel = { | nKey, nDelta, nXPos, nYPos | oMetro:MouseWheel( nKey, nDelta, nXPos, nYPos )  }

   oWnd:bKeyDown = { | nKey | If( nKey == VK_RIGHT, Eval( oWnd:bMouseWheel, 0, -120 ),),;
                              If( nKey == VK_LEFT, Eval( oWnd:bMouseWheel, 0,  120 ),) }
 
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 120 guests