Page 1 of 1

Why leads AlignBaseline=true to execution error?

Posted: 7 Mar 2016 10:58
by Ferenc Nagy
Hi,
I am debugging a form in a program without task window (directly displayed from the main module).
I set the dialog font to "Andale Mono".
The debugger shows execution error for each controls where I selected AlignBaseline=true in the property sheet of the form.
The execution without debugging does not lead to these errors.
Why?
This errors disappeared when I set the AlignBaseline property of all controls which had this drop down list in their property sheets.
What is the exact effect of the AlignBaseline=true setting and when do you recommend use this option?

Posted: 7 Mar 2016 15:32
by Thomas Linder Puls
AlignBaseline is supposed to help with getting different controls to write their text as if it was written on the same line.

If you place a static text next to a button two texts will not appear to be on the same line.

After having experimented a little with the feature I am however certain that it doesn't work. It may work if you use a certain font at a certain size in a certain Windows version.

So the advice is not to use it.

Posted: 8 Mar 2016 13:31
by Ferenc Nagy
Thank you, Thomas.
I have set the AlignBaseLine properties to "False" for all controls owing it. It is interesting that now I do not see the setting in the automatically generated code, and the debugging is not interrupted. It looks like the default state of this property is "False".

Posted: 8 Mar 2016 14:54
by Thomas Linder Puls
I believe the property editor has the wrong view of what the default value is.

We will look at these problems.