BTW, I also unsuccessfully tried this:
// Set the scroll position to the top
ItemNo := 0;
Offs := srv.RichViewEdit.GetOffsBeforeItem(ItemNo);
srv.RichViewEdit.SetSelectionBounds(ItemNo, Offs, ItemNo, Offs);
But also didn't work.
Search found 4 matches
- Tue Nov 25, 2014 6:12 pm
- Forum: Support
- Topic: Hot to scroll
- Replies: 2
- Views: 12208
Hot to scroll
How would I go about to scroll to the very top or my ScaleRichview? I unsuccessfully tried the following: A) srv.RichViewEdit.ScrollTo(0); B) srv.RichViewEdit.VScrollPos := 0; C) srv.VScrollPos := 0; Etc. but nothing will make it scroll to the very top. Furthermore, why would I use A) srv ...
- Mon Nov 24, 2014 7:39 pm
- Forum: Support
- Topic: Appending onPaintPage
- Replies: 1
- Views: 10665
Appending onPaintPage
I have 2 ScaleSRichView (ScaleRicheView1 and ScaleRichView2). In ScaleRichView1, I load some sale data (net, gross, customer info, etc). I also have a custom onPaintPage event to display some header and footers. var H : Integer; Text: String; begin inherited; if Prepaint then Exit; // *** EXIT RIGHT ...
- Mon Nov 24, 2014 6:34 pm
- Forum: ScaleRichView
- Topic: Header and Footer
- Replies: 1
- Views: 17535
Header and Footer
I have researched this for 2 days now. Went over all the demos, read tones of posts, still cannot get to display a header or footer. Can someone please explain to me how this works. 1. What do I have to do to display a simple text header? 2. What do I have to do to display a simple footer (i.e ...