To Antonio

To Antonio

Postby Otto » Fri Jun 21, 2013 12:35 pm

Hello Antonio,
can you please show how to navigate with the keyboard to the get-fields EXE: Data: Area:

Thanks in advance
Otto
Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6020
Joined: Fri Oct 07, 2005 7:07 pm

Re: To Antonio

Postby Antonio Linares » Mon Jun 24, 2013 5:00 pm

Otto,

I guess that the focus is on the xbrowse on the left side, so the tab is not working there, right ?
regards, saludos

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

Re: To Antonio

Postby Antonio Linares » Mon Jun 24, 2013 5:14 pm

Otto,

This little change would be required on Class TXBrowse:

Code: Select all  Expand view
METHOD GetDlgCode( nLastKey ) CLASS TXBrowse
 
   if .not. ::oWnd:lValidating
      if nLastKey == VK_UP .or. nLastKey == VK_DOWN ;
         .or. nLastKey == VK_RETURN .or. nLastKey == VK_TAB
         ::oWnd:nLastKey = nLastKey
      else
         ::oWnd:nLastKey = 0
      endif
   endif
 
return If( IsWindowEnabled( ::hWnd ), If( ::nDlgCode != nil, ::nDlgCode, DLGC_WANTALLKEYS ), 0 )


And in your app, simply do:
oBrw:nDlgCode = 1 // DLGC_WANTARROWS
regards, saludos

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

Re: To Antonio

Postby Antonio Linares » Mon Jun 24, 2013 5:23 pm

You could also try with:

oBrw:nDlgCode = 0x0080 // DLGC_WANTCHARS
regards, saludos

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

Re: To Antonio

Postby Otto » Mon Jun 24, 2013 8:57 pm

Dear Antonio,

thank you.
I could not get it working with the changes you suggested.

But you pointed me in the right direction:

oBrw:bKeyChar := { |nKey| iif(nkey=9, ( aoGetStart[oBrw:nArrayAt]:Setfocus() ) , ) }

This is working fine.
Best regards,
Otto



Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6020
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 14 guests