Re: CEdit problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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) of
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,
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
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Problem drawing the right font in an owner draw TreeView
    ... Rather than build another user control to handle ... During owner draw, I ignore the width of the passed in bounds rectangle. ... I don't explicitly make the display font the same as the edit font. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Font in Windows Mail for vista
    ... There are no Edit, Source, or preview buttons anywhere in the email ... "VistaRookie" wrote: ... If you choose to keep the email with the font adjusted, ... I use the mouse scroll wheel feature this has no effect at all. ...
    (microsoft.public.windows.vista.mail)
  • Re: CFont.
    ... We have a CFont object member as part of our AdvancedEdit object. ... edit control that is capable of doing multiple data entry options. ... this application is using some things such as a dynamic dialog switching ... >> override the Font of these items on a case by case basis. ...
    (microsoft.public.vc.mfc)
  • Re: Font in Windows Mail for vista
    ... bottom of the email on the left side: Edit Source Preview. ... If you choose to keep the email with the font adjusted, ... I use the mouse scroll wheel feature this has no effect at all. ...
    (microsoft.public.windows.vista.mail)
  • Re: monogram help for a newbie
    ... But when I type in a larger font size it doesn't accept it. ... I have created a monogram for our ... You may need to open and edit it again. ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)