FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SWITCH
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
SWITCH
Posted: Sun Aug 07, 2016 05:34 PM

Dear Antonio,
how can we use SWITCH with keyboard.
Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SWITCH
Posted: Sun Aug 07, 2016 07: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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: SWITCH
Posted: Sun Aug 07, 2016 08:45 PM
Dear Antonio,
please see the screenshot. I can not navigate the switch with the keyboard.
Thanks in advance
Otto

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


Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SWITCH
Posted: Sun Aug 07, 2016 08:56 PM

Otto,

You can use the space key to toggle the SWITCH value

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: SWITCH
Posted: 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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: SWITCH
Posted: Tue Aug 09, 2016 01:31 AM
Yes, this works on window but not on dialog.
Fixed now.
Sending you the revised libs.
Till then work around is
Code (fw): Select all Collapse
oSwitch:bKeyDown := { |k| If( k == 32, oSwitch:Click(), nil ) }
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion