How do I group an edit and some radio buttons? - delphi

I have to add one TEdit wit two radio buttons in a group of radiobuttons.
I was searching information but nothing helps me.
How I can add?

Do the following:
Add a group box, TGroupBox, which will act as the container.
Add two radio buttons, TRadioButton, as children of the group box.
Add an edit, TEdit, as a child of the group box.
The radio group control, TRadioGroup is essentially a convenience control. You could implement a radio group from a group box and a bunch of radio buttons, but since that is such a common task, the radio group control is provided to wrap up all those details for you.
In your scenario, you want something a little more flexible than is provided by a radio group, and so you have to populate the group box manually.

Related

Trying to add items to a TRadioGroup but no Item Editor or Items property is available

I'm trying to create a 4-button radio group on a Form using the TRadioGroup component. I can add the radio group, but I can't add any items to it.
The documentation gives two ways of doing this: the 1st way is to right-click the group box and select "Item Editor", and the 2nd way is to edit the Items property in the Object Inspector. However I have no Item Editor selection available on right-click, and no Items property in the Object Inspector.
Is there something in the setup that I've missed here, or will I have to resort to using a TGroupBox and adding individual TRadioButton control to it?

Hints for each choice in dropdown menu

I would like to add a hint to each choice in dropdown menu. Is that possible?
Like in radio buttons, there are three fields: Label, Value, Hint. In dropdown menu there are only Label and Value.
You didn't overlook anything: this isn't possible out-of-the-box. If you need to provide hints for individual items, then I'd recommend you use checkboxes or radio buttons, as appropriate.

How do I filter a table using check list boxes and a button? (in Delphi 2010)

This is the form I am working with:
It shows a basic Delphi form with a DB Grid on top with a panel underneath. The panel below contains two CheckListBox's and one radiogroup. Each CheckListBox contains three check boxes and the radiogroup consists of two radio buttons. There is also a button on the right of the panel with the text "Filter" on it.
Question: How can I select the check boxes and one of the radio buttons and then click the button to make the table filter according to the selection?

How can I create multiple radio button groups on a single form?

With VCL, we had a TRadioGroup class with an Items property you could modify at design time. With Firemonkey, we only have the TRadioButton class.
From what I understand, if you add objects of type TRadioButton as children to other container objects (e.g. TPanel, TGroupBox), these containers will effectively act like the VCL TRadioGroup objects.
However, these individual radio buttons seem to behave as if they are all children of the same parent. If you select a radio button in group A, and then select a radio button in group B, the radio button in group A is deselected.
How can I get radio buttons in one container object to not deselect radio buttons in other container objects?
Here's an example of my form design:
Set the GroupName properties of the buttons. Radio buttons with the same group name will act as a separate group.

Radio buttons in Hobo Rails

How can I use radio buttons in a form in Hobo Rails? I want a gender field with two options "Male" and "Female". If I use the default enum_string type it creates drop down select instead of radio buttons.
Hobo does not currently support radio buttons. You have to do them yourself.
There is a half complete tag defined in this post.

Resources