Solved

Line spacing in EditBox

Posted on 1998-09-23
2
313 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
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 30 total points
ID: 1322487
Edit box does not have this capability.
You need to use CRichEditCtrl.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 91
repeatEnd java challenge 42 84
deburging in oracle form 12 88
sumHeights2  challenge 7 88
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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now