set_alignment

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

CALL METHOD my_control->set_alignment
      EXPORTING  alignment         = alignment
      EXCEPTIONS cntl_error        = 1
                 cntl_system_error = 2.

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:

alignment = my_control->align_at_left + my_control->align_at_top.