Page 1 of 1

Newbie Q

Posted: Sat Jun 09, 2007 8:14 pm
by ejla
Hi,

I'm testing with TRichView freeware verion and found it very intresting with couple of valuable features!!!
Can someone advice me with my little trivial problem...
I have a "chat window" where text appears very sporadic. I hold last line tracked / visible with "RichView1.FormatTile", but I will disable scroll eg. when "looking back" for older received text (and hold possible selection while new text appears in the end of RV). If I use "RV.Format" instead, the window will be scrolled to beginning... This is not meaning...want scroll maybe only few lines or only simple stop VScroll. Is there something I have missed?

Regards,
Erkki

Posted: Sun Jun 10, 2007 2:48 am
by shmp
Try RV.FormatTail or RV.Reformat instead of RV.Format. The format should be done only once when you have just cleared RV or Load a new file.

Posted: Sun Jun 10, 2007 8:27 am
by ejla
shmp wrote:Try RV.FormatTail or RV.Reformat instead of RV.Format. The format should be done only once when you have just cleared RV or Load a new file.
There is not Reformat method available.

Posted: Sun Jun 10, 2007 1:25 pm
by shmp
Oops. Maybe the trial version do not have that feature.

Posted: Sun Jun 10, 2007 6:11 pm
by Sergey Tkachenko
Reformat is not implemented 9n freeware version.
FirmatTail must be used for updating chat window. ScrollToEnd property controls how the content is scrolled after FormatTail.

Posted: Sun Jun 10, 2007 9:36 pm
by ejla
Sergey Tkachenko wrote:Reformat is not implemented 9n freeware version.
FirmatTail must be used for updating chat window. ScrollToEnd property controls how the content is scrolled after FormatTail.
Ok... but can't found any ScrollToEnd :oops:
Have done a notify event for tracking however the content is scrolled by user or not. (Scrolled = RV.LastLineVisible < RV.Lines.Count).
Lines.Count increases correct but I can't found how to display them when Scrolled became false again. RV.Perform(WM_VSCROLL, SB_BOTTOM, 0) have not any affect.

/Erkki

Posted: Mon Jun 11, 2007 6:21 pm
by Sergey Tkachenko
I am on vacation currently, and I do not have access to the source code. If there no ScrollToEnd property in freeware version, may be it has a similar option in the Options property?
You can also use VScrollPos and VScrollMax properties.