Hi,
The following code works fine on a TRichEdit component but doesn't work on my TAdvMemo component:
AdvMemo1->SetFocus();
AdvMemo1->Refresh();
AdvMemo1->SelStart = 0;
AdvMemo1->SelLength = 0;
AdvMemo1->Perform(EM_SCROLLCARET, 0, 0);
AdvMemo1->Refresh();
Can anyone shed some light on this?
TAdvMemo is a syntax highlighting memo control, meaning that all coloring is controlled by syntax rules. This is different from a rich edit component and as such, TAdvMemo should not be treated as richedit compatible or rich edit equivalent.
Okay, good to know. (Thanks for the quick reply Bruno)
I have now worked out that I need to use:
AdvMemo1->SetCursor(0, 0);