Getting Focus on Radio-Set Element in CHAR (NOT GUI)

gummbeey

New Member
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

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.
 

bulklodd

Member
I'm affraid it looks impossible. The radio-set has low-level triggers on up & down keys. If you define your own triggers they'll become high-level ones and there'll be no possibility to call default low-level triggers from them. Usually this sort of problem happens when you try to define trigger on any key. I think the best idea is to leave it alone.
 
Top