So with XCode (and I haven't done much with it - so I am aNoob when it comes to XCode), the coordinates work different than in Lazarus.
Where in Lazarus (0,0) = top, left corner, in XCode (0,0) means bottom left corner.
Note: I left all default values unless mentioned otherwise for all components in XCode and Lazarus.
In XCode:
I created a form 400 wide and 300 height.
Then I created a "Box" (that's what XCode calls it) - which has
- title = "Title"
- borderstyle = bezel
- width = 360 (planning in 20 space all around the box for easy of calculation)
- height = 260
- left = 20
- bottom = 20 (since XCode flipped the Y axis)
- Box type = primary (there are some options like secondary, old style, custom, etc)
In the box I created a "Scroll view", which has:
- height = 200
- width = 310
- left = 20
- bottom =20
- Under behavior all op the scroll and scrollbar options have been unchecked
The design and runtime appearance are identical (see screenshot).
Note: with all these different options (title, style, bezel, etc) I can imagine this to be very tricky to figure out.
In Lazarus (Carbon IDE - project file attached):
I created a form also 400x300.
I placed a GroupBox;
- title = "Title"
- borderstyle cannot be set
- width = 360
- height = 260
- left = 20
- top = 20 (300 - 260 - 20)
- Box type cannot be set
In the GroupBox I placed a TListBox;
- height = 200
- width = 310
- left = 20
- top =20 (260 - 200 - 20)
- Style = standard
Compiled with CarbonWS: Design and runtime do match.
Compiled with CocoaWS: Design (in Carbon IDE) does not match runtime (top, height and width are off).