Solved

Line spacing in EditBox

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to monitor remote shell execution on linux 9 106
ShiftLeft challenge 21 88
zeroFront challenge 7 121
Authenticate using sesu from script 7 108
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

735 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