In Char (NOT GUI), how do you get the focus specfically on a radio-set element?
I need to code the following:
1) If focus is on apple, and user presses "up", focus should go up to v_pet.
2) If focus is on cherry, and user presses "down", focus should go down to v_color.
3) Otherwise, focus should go up/down within the radio-set elements when user presses up/down.
NOTE: Focus does not mean X on the radio-set element.
Thanks,
gummbeey
I need to code the following:
1) If focus is on apple, and user presses "up", focus should go up to v_pet.
2) If focus is on cherry, and user presses "down", focus should go down to v_color.
3) Otherwise, focus should go up/down within the radio-set elements when user presses up/down.
NOTE: Focus does not mean X on the radio-set element.
Thanks,
gummbeey
Code:
[FONT=Courier New]+-------------------+[/FONT]
[FONT=Courier New]|v_pet: ________ |[/FONT]
[FONT=Courier New]|v_fruit: (X) apple |[/FONT]
[FONT=Courier New]| ( ) banana|[/FONT]
[FONT=Courier New]| ( ) cherry|[/FONT]
[FONT=Courier New]|v_color: ________ |[/FONT]
[FONT=Courier New]+-------------------+[/FONT]
DEF VAR v_pet AS CHAR.
DEF VAR v_fruit AS CHAR VIEW-AS RADIO-SET VERTICAL
radio-buttons
" apple", "a",
" banana", "b",
" cherry", "c"
SIZE 10 BY 3.
DEF VAR v_color AS CHAR.
DEF FRAME f1
v_pet SKIP
v_fruit SKIP
v_color SKIP
WITH SIDE-LABELS.
ENABLE
ALL
WITH FRAME f1.
WAIT-FOR CLOSE OF THIS-PROCEDURE.