Page 1 of 1

MemoEx vertical size growing

PostPosted: 12 Sep 2019 22:47
by kit
Hi,

The height of the MemoEx control is changing when text is added if the initial height is less than 100. It changes til it is 100 high and then stays constant. Is there a way to keep the height constant if the height is set to less than 100? I have the vertical scroll bar turned on.

Thanks,

Kit

Re: MemoEx vertical size growing

PostPosted: 16 Sep 2019 10:19
by Alexander Bulei
Hi kit,

Check your options in MemoExOptions.

Best Regards.

Re: MemoEx vertical size growing

PostPosted: 17 Sep 2019 00:17
by kit
I have looked at the options in MemoExOptions. I have tried setting MaxHeight. It doesn't seem to make any difference. It still grows to a height of about 100. I have also tried setting the MinHeight, MaxWidth, and MinWidth. The control seems to behave fine when the original height is greater than 100. In this case I want to set it to a height of 55. What else am I missing?

Thanks,

Kit

Re: MemoEx vertical size growing

PostPosted: 17 Oct 2019 23:07
by kit
If anyone is interested I have found a way to avoid the problem. It only happens when the height is less than 100 and a text value is set. If the text is set using MemoEx.lines.text rather than MemoEx.Text the problem goes away.