SWITCH

SWITCH

Postby Otto » Sun Aug 07, 2016 5:34 pm

Dear Antonio,
how can we use SWITCH with keyboard.
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6313
Joined: Fri Oct 07, 2005 7:07 pm

Re: SWITCH

Postby Antonio Linares » Sun Aug 07, 2016 7:49 pm

Dear Otto,

What is SWITCH ? I don't understand what you mean.

Could you provide an example ? thanks
regards, saludos

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

Re: SWITCH

Postby Otto » Sun Aug 07, 2016 8:45 pm

Dear Antonio,
please see the screenshot. I can not navigate the switch with the keyboard.
Thanks in advance
Otto

Code: Select all  Expand view

@ nRowOffset + nRowSpace * nLine, nColBeschreibung   + nSpalte  ;
      SWITCH oNewsletter ;
      VAR lNewsletter ;
      SIZE 16 ,16 ;
      PIXEL ;
      OF oDlg ;
      ON CHANGE ( oDlg:Update()) ;
      UPDATE


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

Re: SWITCH

Postby Antonio Linares » Sun Aug 07, 2016 8:56 pm

Otto,

You can use the space key to toggle the SWITCH value
regards, saludos

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

Re: SWITCH

Postby Otto » Sun Aug 07, 2016 10:30 pm

Dear Antonio,
yes it is working in touch.prg.
In my program it is not working.
I use it on a Dialog could that be the problem.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6313
Joined: Fri Oct 07, 2005 7:07 pm

Re: SWITCH

Postby nageswaragunupudi » Tue Aug 09, 2016 1:31 am

Yes, this works on window but not on dialog.
Fixed now.
Sending you the revised libs.
Till then work around is
Code: Select all  Expand view
oSwitch:bKeyDown := { |k| If( k == 32, oSwitch:Click(), nil ) }
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 67 guests