This attribute is used to set the alignment of the selected project. It must be one or a combination of the following constant values (separated by the '|' symbol ). Top = 0x30: place the selected object on the top of its container without changing its size. Bottom = 0x50: place the selected object at the bottom of its container without changing its size. Left = 0x03: place the selected object to the left of its container without changing its size. Right = 0x05: place the selected object to the right of its container without changing its size. Center_vertical = 0x10: place the selected object in the vertical center of its container without changing its size. Fill_vertical = 0x70: to fully fill its container, the system increases the vertical size of the selected object as needed. Center_horizontal = 0x01: place the selected object in the horizontal center of its container without changing its size. Fill_horizontal = 0x07: to fully fill its container, the system will increase the horizontal size of the selected object as needed. Center = 0x11: place the selected object in the vertical and horizontal center of its container without changing its size. Fill = 0x77: to fully fill the container, the system will add the horizontal and vertical sizes of the selected object as needed. Clip_vertical = 0x80: optional additional settings. You can set the upper and lower edges of sub-objects in the container to crop the border of the container. The cropping is based on the Vertical Alignment Method: The top alignment will crop the bottom edge, and the bottom alignment will crop the top edge, not both the top and bottom edges. Clip_horizontal = 0x08: optional additional settings. You can set the left and right edges of sub-objects in the container to crop the border of the container. The cropping is based on the Horizontal Alignment Method: The left alignment will crop the right edge, and the right alignment will crop the left edge, not both the left and right edges. Start = 0x00800003: place the object at the starting position of its container without changing its size. End = 0x00800005: place the object at the end of its container without changing its size. The corresponding global attribute resource symbol is gravity. Note: a spinner object is a window object container. Setting Its gravity attribute only changes the alignment of the sub-window objects in the container, and does not change the alignment of the content in the sub-Windows. |