
back
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
8. Aligning the controls
(buttons):
Regarding the resizing of the browser a question
occurs concerning the position of the controls: what happens to the location
of a control (i.e. a button) when the size of the browser is changed?
Find out the answer by adjusting the controls' Alignment' property.
|
|
- First select the back button
of our example.
- While resizing, the button
should align to the topleft corner of our browser. So please check Top
and Left under Alignment in the properties
dialog.
- Repeat this with the cancel button
and the forward button
|
|
 |
|
 |
- The exit button needs to be aligned
topright, so check Right
and Top
Alignment.
|
|
 |
|
 |
- Bottom,
Right
for the resize button
|
|
 |
|
 |
- Unlike the buttons, the Edit control, which serves
as an addressbar in our example, should keep its offset to the left as
well as its offset to the right when the browser's width is changed.
So we choose Top,
Left
and Right
Alignment.
|
|
 |
|

|
- The
Label
control needs the same handling, except for not aligning to the top but
to the bottom:
Check Left, Right
and Bottom
Alignment.
|
|
 |
|
|
 |
|
|
|
|
|
|
|

next
|
|