FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to scroll up/down in a get with spinner from keyboard
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

How to scroll up/down in a get with spinner from keyboard

Posted: Sat Dec 22, 2007 08:24 AM

Could someone tellme which key to use to scroll up/down in a get with spinner from keyboard.

Thanks in advance
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

How to scroll up/down in a get with spinner from keyboard

Posted: Sat Dec 22, 2007 08:35 AM
Otto,

Please add this code to Class TGet Method KeyDown():
   	  case nKey == VK_PRIOR
   	       if ::lSpinner
   	          Self--
   	       endif   

   	  case nKey == VK_NEXT
   	       if ::lSpinner
   	          Self++
   	       endif

Now you can use PageUp and PageDown
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM

How to scroll up/down in a get with spinner from keyboard

Posted: Sun Oct 26, 2008 06:45 PM
Antonio Linares wrote:Otto,

Please add this code to Class TGet Method KeyDown():
   	  case nKey == VK_PRIOR
   	       if ::lSpinner
   	          Self--
   	       endif   

   	  case nKey == VK_NEXT
   	       if ::lSpinner
   	          Self++
   	       endif

Now you can use PageUp and PageDown


Antonio,
I have added those two "case" to Tget class, but when I click in PgUp/PgDown, move another combobox control that I have in that dialog and it not move the spinner one.

(Spanish)
He añadido los dos "case" a la clase Tget, pero me mueve un combobox que tengo en el diálogo y no el spinner.
Un saludo



Manuel

Continue the discussion