This example requires: TRichEdit, TRadioGroup, TCheckBox, and TButton. Clicking the Radio Group control sets the ScrollBar style of the RichEdit. Toggling the Check Box turns HideScrollBars on and off. Clicking the button loads the Rich Edit with a large amount of contiguous text.
RichEdit1->SelStart = 0; // Move text cursor to the top of the edit.