Main Board > Language

Radio Button Logic

(1/2) > >>

James Zukowski:
I'm setting up a panel with a set of Radio Buttons to control which Tab on a Tabless Folder to use. I've included a Perform routine for the RB's "When Receiving Focus" logic, but it never seems to execute. (ESCAPE as first statement doesn't happen.)
Is there something I'm missing?

Mike King:
Events are only associated with primary radio button of a group -- that is index 1.

In addition the FOCUS event treats the focus to any of the radio buttons in the group together, that is it fires the logic assigned to the on focus logic of the primary button when any button gets focus HOWEVER changing focus from button to button within the group is not fire an on focus event.

So for example if I have three radio buttons:

(o) Visa
(o) MasterCard
(o) Amex

If I put focus from any control outside of the radio button group to any of the radio buttons I will get the on focus event, but if once in group and focus is for example on Visa, changing focus to Amex or MasterCard will no fire an on focus event.

All buttons in a radio button group are considered as a single control.

James Zukowski:
I've got that much down; thanks.
The problem I'm encountering is that when I tab into the RB group, the On Focus doesn't fire.
Perhaps it ties into the tabless folder. Tabbing out of the last control on the tab is supposed to go to the RB group. It seems, however, to ignore any remaining (non-visible) tabs, returning to the first defined tab (which is an empty page, and that's OK). The focus then lands on the RB group, with the last selected entry highlighted.

James Zukowski:
Even after cleaning up the double-processing of the turning off the RB's (see, I still can't seem to get the When Receiving Focus logic to fire (msgbox "Pre-Op"; perform ...).

NOMADS panel on PxPlus 13.10 on RedHat Linux.

Mike King:
I tried this here with a Radio Button group "after" the folder and I got the Focus event (tabbed or tabless)
I also tried this with a radio button group on another tab and it too seemed to work.

I created a panel with a folder with a radio button group just after the folder then added two sub-panels to the folder.  The radio button group had an On Focus event to execute PRINT "Focus".
When I pressed tab on the last control on any of either sub-panel focus went to the radio button group outside of the folder and printed "Focus" on the panel.


[0] Message Index

[#] Next page

Go to full version