1 (edited by Delta 2021-12-19 07:29:21)

Topic: anchors in Form design is ok, but write script with a big blank.

If you set anchors to bottom, the controls distance the bottom there's a big blank.
You can see my other post, it have the example sourcecode.


//anchors
  //0 not anchors
  //1 left
  //2 top
  //3 left top
  //4 right
  //5 left right
  //6 right top
  //7 left right top
  //8 bottom
  //9 left bottom
  //10 top bottom
  //11 left top bottom
  //12 right bottom
  //13 left right bottom
  //14 right top bottom
  //15 left right top bottom

Re: anchors in Form design is ok, but write script with a big blank.

I found the bug, set anchors in Form design is no problem, but write script with a big blank on bottom and right.

Re: anchors in Form design is ok, but write script with a big blank.

Hi Delta,
.
Nice observations.  I'm curious as to where you got the values for the anchors.  Did you find them documented somewhere, or did you manually seek them out?
.
I particularly like your column sizing technique too.


-joshuA

"Energy and persistence conquer all things."

Re: anchors in Form design is ok, but write script with a big blank.

joshuA wrote:

Hi Delta,
.
Nice observations.  I'm curious as to where you got the values for the anchors.  Did you find them documented somewhere, or did you manually seek them out?
.
I particularly like your column sizing technique too.


-joshuA

I manually try the values.

Re: anchors in Form design is ok, but write script with a big blank.

If you search, you can find that the values are akLeft, akTop, akRight, akBottom, in any combination.
For example:
  Form1.Button1.Anchors: = akTop + akLeft + akBottom + akRight;
or
  Form1.Button1.Anchors: = akLeft + akBottom;
or ...