Re: CEdit problem
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Mon, 04 Sep 2006 11:59:18 -0400
What I usually do is a GetFont of whatever dialog I'm in, then change the face name and
create the new font. This means that my font follows the desired scaling of the user,
which helps me keep the look-and-feel desired by the user.
joe
On 3 Sep 2006 23:46:08 -0700, "Arpit" <arpitpmehta@xxxxxxxxx> wrote:
Thanks .. I have to create Font as a Member Variable (Global Font) ofJoseph M. Newcomer [MVP]
the class i m using to prevent it going out of scope
Joseph M. Newcomer wrote:
If you have not explicitly done a SetFont, a dynamically-created control will get the
system font, which is not just bold, but quite different in a lot of ways from most fonts.
Typically, you will want to set the font of the edit control to the font you desire.
I believe there is a codeproject example that has a dynamically-resizing edit control.
joe
On 31 Aug 2006 06:51:46 -0700, "Arpit" <arpitpmehta@xxxxxxxxx> wrote:
Hi experts,Joseph M. Newcomer [MVP]
I m preparing Excel kind of thing using SDI application.
I m using CEdit object for entering text. I have kept the size of CEdit
as the size of my cell(D5 etc..) What i see is that inside my edit Box
the text are displayed in bold letters. I dont want this. Moreever
after reaching the limit of edit box i should dynamically increase the
edit box's size while typing, as needed. See Microsoft Office Excel
2007 (Beta) for further checking.. Can any one of u guide me to how to
do this????
Thanks
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: CEdit problem
- From: David Ching
- Re: CEdit problem
- References:
- Re: CEdit problem
- From: Joseph M . Newcomer
- Re: CEdit problem
- From: Arpit
- Re: CEdit problem
- Prev by Date: Re: Layout of Dialog (screen resolutions, font sizes etc)
- Next by Date: Re: I find a BIG bug of VS 2005 about string class!
- Previous by thread: Re: CEdit problem
- Next by thread: Re: CEdit problem
- Index(es):
Relevant Pages
|