Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

richedit font size

Posted on 2004-10-25
3
Medium Priority
?
316 Views
Last Modified: 2013-12-03
I'm trying to vertically scroll a RichEdit one line at a time so I need to know the currently displayed font size. thanks
0
Comment
Question by:sally_m
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 300 total points
ID: 12407648
 SendMessage(RichEdit1.Handle, WM_VSCROLL, SB_LINEDOWN, 0);
0
 

Author Comment

by:sally_m
ID: 12408847
ok but this assumes the height of the richedit is a multiple of its displayed font size. if I have a resizable richedit and I scroll down past the last item, when scrolling up using SB_LINEUP, lines are partially displayed at the top. how can I work around this?
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12409842
Well, you can also use abs(RichEdit1.Font.Height) and RichEdit1.ScrollBy method
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

596 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question