BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RichEdit to scroll or not to scroll

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Lawrence Tuppen
Guest





PostPosted: Sat Nov 13, 2004 3:42 pm    Post subject: RichEdit to scroll or not to scroll Reply with quote



I have a RichEdit filling a Page of a PageControl on a Form.
I want to know if the data in the RichEdit is all visible on screen,
or if there is more yet to see. Then I can set a warning background
colour when necessary.

"if (Form1->VertScrollBar->Range>RichEdit1->ClientHeight)"
does NOT work. My (faulty?) logic says that the Range should be
positive and bigger than ClientHeight but it is zero! I can only
assume that windows has dynamically created some extra scroll bar.

But what does work?

--
Lawrence Tuppen
Email: [email]TUPPENL (AT) mailaps (DOT) org[/email] Web: http://homepage.ntlworld.com/tuppenl


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.