Skip to main content

[archive] Radio Button Selected

  • October 29, 2007
  • 7 replies
  • 0 views

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks

7 replies

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks
You may control the focus by modifying the screen control values.
If you look up the ACUCOBOL-GT manual chapter 4 (Special-Names paragraph), go down to "General Rules - Screen Control Entry".
If you read paragraph 4. it is all about screen section navigation. at paragraph 4.e you will see that you can set ACCEPT-CONTROL to 4 and then the id of the desired control in CONTROL-ID. This will transfer focus to your control.
Note that a tab is not a control to hold focus, so you should set focus on one of the controls on the tab and the tab is switched automatically.

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks
You may control the focus by modifying the screen control values.
If you look up the ACUCOBOL-GT manual chapter 4 (Special-Names paragraph), go down to "General Rules - Screen Control Entry".
If you read paragraph 4. it is all about screen section navigation. at paragraph 4.e you will see that you can set ACCEPT-CONTROL to 4 and then the id of the desired control in CONTROL-ID. This will transfer focus to your control.
Note that a tab is not a control to hold focus, so you should set focus on one of the controls on the tab and the tab is switched automatically.

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks
I am setting:
move 13 to control-id
move 4 to accept-control
move 1 to control-value

We use this in our program and it works for almost all types of fields. It doesn't seem to work on check boxes or radio buttons.

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks
I am setting:
move 13 to control-id
move 4 to accept-control
move 1 to control-value

We use this in our program and it works for almost all types of fields. It doesn't seem to work on check boxes or radio buttons.

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks
I have found that you need to redisplay the radio buttons or checkboxes in order to signal the user that the focus has changed/

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks
I have found that you need to redisplay the radio buttons or checkboxes in order to signal the user that the focus has changed/

[Migrated content. Thread originally posted on 27 October 2007]

Is there a way when a user clicks on a radio button or check box to have the curser and control go to the next tab field. I have tried using control-id but the button is still the active control.

Thanks
I have found that you need to redisplay the radio buttons or checkboxes in order to signal the user that the focus has changed/