开发者

Can I have multi-column Radio groups in both Delphi and HTML?

Can I have multi-column Radio groups in both Delphi and HT开发者_如何学GoML?


In Delphi, RadioGroup has Columns property which you can set.

Below code will set 3 columns

RadioGroup1.Columns := 3;


In HTML, you can define your own layout by simply placing the radio buttons you like in a table like e.g.:

<table>
    <tr>
        <td>
            <input type="radio" name="group1" value="Milk">Milk<br />
            <input type="radio" name="group1" value="Butter">Butter<br />
            <input type="radio" name="group1" value="Cheese">Cheese
        </td>

        <td>
            <input type="radio" name="group1" value="Water">Water<br />
            <input type="radio" name="group1" value="Bread">Bread<br />
            <input type="radio" name="group1" value="Soda">Soda
        </td>
    </tr>
</table>

For the Delphi part, I don't know, since I'm not familar with Delphi.

If it is similar to Windows Forms, I think you simply use the visual designer to place the single radio buttons in whatever position you like them to have.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜