set_alignment

Use this method to align the custom control within its container:

Parameters

Description

alignment

Control alignment

The alignment parameter may consist of combinations of the following alignments:

Name

Description

my_control->align_at_left

Alignment with left-hand edge

my_control->align_at_right

Alignment with right-hand edge

my_control->align_at_top

Alignment with top edge

my_control->align_at_bottom

Alignment with bottom edge

You can combine these parameters by adding the components: