ES_LEFT vs ES_RIGHT CEdit alignment
Posted on 2004-09-14
I have an MFC application which creates edit fields. In certain cases the text is aligned left and in others it is aligned right. The problem is that when I use ES_RIGHT for right alignment, the text does not fit always fit in the edit field. For example, if I have an edit field that is only 2 characters wide and it has 2 chars in it, the text displays fine if it is aligned left. The same edit box aligned left will cut off the text so that only the first character shows. I am using a monospaced font, so I know that it is not a font/character issue. Making the edit box bigger is not an option for me. Is there some padding or border or some property of the font and/or cedit that needs to be changed or set? Thanks.