Newbie Q

General TRichView support forum. Please post your questions here
Post Reply
ejla
Posts: 3
Joined: Sat Jun 09, 2007 7:55 pm
Location: Sweden

Newbie Q

Post 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
shmp
Posts: 140
Joined: Sun Aug 28, 2005 10:19 am
Location: Sabah, Malaysia.
Contact:

Post 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.
ejla
Posts: 3
Joined: Sat Jun 09, 2007 7:55 pm
Location: Sweden

Post 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.
shmp
Posts: 140
Joined: Sun Aug 28, 2005 10:19 am
Location: Sabah, Malaysia.
Contact:

Post by shmp »

Oops. Maybe the trial version do not have that feature.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
ejla
Posts: 3
Joined: Sat Jun 09, 2007 7:55 pm
Location: Sweden

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply