Skip to content

RADIO and GROUPBOX Issues using @FormAdd #4

@MGibs2714

Description

@MGibs2714

I was trying to add several RADIO buttons to a group.

I created a GROUPBOX and then used its control ID to try to create the RADIO controls (e.g.
set RC=%@formadd[%h,grpOutput/rbScreen,RADIO,288,80,104,24,Screen]

When doing this, no Radio buttons were displayed on the form.

So I removed the GROUPBOX control ID from the RADIO @formadd commands and the RADIO buttons displayed as expected.

But I was unable to figure out how to set the initially selected RADIO button on the form, or how to retrieve the selected RADIO button after the form was displayed. If it's in the doc, I couldn't find it.

Also, there was some odd behavior related to the order in which the GROUPBOX was added relative to the RADIO controls.

If the GROUPBOX was added (using @formadd) before the RADIO buttons (which were added without the GROUPBOX control ID) then the GROUPBOX overlaid the radio buttons on the form making them invisible. (If I moved the group box, I could see that the radio buttons were rendered but covered by the GROUPBOX).

If the GROUPBOX was added after the RADIO buttons, then the display appeared correct.

Should the GROUPBOX be drawn with a transparent background? I suppose that none of this would matter if I could get the RADIO buttons to function as children of the GROUPBOX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions