Hi,
I'm using free vision and I'm using a TMemo in a dialog window. I give the memo 2 scrollbars and a indicator as you can see in the code below:
// Menu Discription
R.Assign(3, 14, 48, 15);
MemoHScrollBar := New(PScrollbar, Init(R));
R.Assign(50, 7, 51, 14);
MemoVScrollBar := New(PScrollbar, Init(R));
Insert(MemoHScrollBar);
Insert(MemoVScrollBar);
R.Assign(48, 14, 51, 15);
MemoIndicator := New(PIndicator, Init(R));
Insert(MemoIndicator);
R.Assign(3,7,50,14);
PMemoMenuDescription:=New(PMemo,Init(R, MemoHScrollBar, MemoVScrollBar, MemoIndicator, 10000));
PMemoMenuDescription^.Limit.X := 70;
PMemoMenuDescription^.Limit.Y := 40;
Insert(PMemoMenuDescription);
R.Assign(3,6,32,7);
Insert(New(PLabel, Init(R,'~D~iscription menu ', PMemoMenuDescription)));
When I type in the memo field and I get past the width of the field I get a strange black box and characters are repeated. Often I also get an error message after I close the application when this happens. Error code 216 (general protection fault). I just can't see what I'm doing wrong. See the attachment.
This happens under windows 10 and linux
Thanks for any replies.