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

x
?
Solved

Line spacing in EditBox

Posted on 1998-09-23
2
Medium Priority
?
321 Views
Last Modified: 2013-11-19
How can I provide variable (say 1.5) line spacing (like the ones used in MS Word) in an edit box?
Can this be done?
Thanks.
0
Comment
Question by:p1
[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 Comments
 
LVL 8

Expert Comment

by:Answers2000
ID: 1322486
If you're creating a multi-font text editor, take a look at CRichEditCtrl.

With an edit control, you can (maybe) get something close:
Create a font using the LOGFONT structure (CreateFontIndirect API or CFont member), and in this you can specify how high you want each character cell (and if you know the only font available which is smaller and has the required precisionn is 2/3 as big).


0
 

Accepted Solution

by:
SHULTZ earned 60 total points
ID: 1322487
Edit box does not have this capability.
You need to use CRichEditCtrl.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

609 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