cancel
Showing results for 
Search instead for 
Did you mean: 

Alignment of controls

Former Member
0 Kudos

Is it possible to set the alignment of a control (e.g. right alignment) in a form ?

The property RightJustified only changes the direction for text input (required in Israel).

There seems to be no align property for an item?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I'd like to align controls (e.g. to the right side of the form).

Do I really have to catch the resize events sent by the form and rearrange the items?

Anchor properties (akLeft, akTop, akRight, akBottom) for an Item object would be really nice in the next version.

What are the options in 6.5?

Thanks,

Gerold

Former Member
0 Kudos

There is no anchor or docking ability available in 6.5 as far as I know.

Lutz Morrien

Former Member
0 Kudos

There is some automatic "anchoring" that takes place when the form is resized. Controls automatically anchor to based on which quarter of the screen they are in. For example an edittext placed in the top right of the screen will maintain its distance from the top and right hand edges when the screen width is altered.

The only way to alter this behaviour is through catching the resize event and moving/resizing manually.

John.

Former Member
0 Kudos

Hi John,

Thanks for your reply.

Now I know why some controls I added to a form were aligned to the bottom instead of placed at the assigned position (.top).

Is there a way to disable this auto-alignment behaviour in SBO 6.5?

Another option would be to change the size of the form before adding the controls to the form to prevent the auto-aligment. But this is not really nice...

Thanks.

Gerold