Form

GPALGroupBox

Everything on Settings Every Control Takes applies here too. GPAL.GroupBox builds one, WithText sets the caption drawn on its border, and WithFormControl adds controls to it rather than to the form. It sizes itself to what is inside it, so it does not need a height. A group box is also what makes a set of radio buttons one group, since Windows treats each container as its own set.

Examples

GPAL Fluent: High-level fluent C# API

//The group box is added to the form as one control, and the three radio buttons go with it. They are not added to the form separately.

GPALGroupBox engine = (GPALGroupBox)GPAL.GroupBox

.WithText("Automation engine")

.WithFormControl(selenium)

.WithFormControl(puppeteer)

.WithFormControl(ottoMagic)

.WithName("engine");


GPAL.Form

.WithTitle("Run")

.WithFormControl(engine)

.ShowDialog();

💬 Ask GPAL