text allignment in richtext boxes

text allignment in richtext boxes

Post by Raman » Wed, 03 Sep 2003 15:05:44


Hi,
When I use two rich textboxes with and without multiline property is TRUE,
The test alignment (left) is not same for both the text boxes.
If the multiline property is TRUE then I am getting a small gap between the
text and the left edge, whereas the text is almost touching the left edge if
the mutliline property is False.

For combo boxes I am getting more gap between the text and the left edge.
How to get the uniform gap for all the UI controls? I am using the same font
for all controls. We are getting comments from our UI review team due to
this inconsistent text alignment.

Advance thanks.

Ramana
 
 
 

text allignment in richtext boxes

Post by Herfried K » Wed, 03 Sep 2003 21:21:03

Hello,

"Ramana" < XXXX@XXXXX.COM > schrieb:

PInvoke: 'SendMessage' + 'EM_SETMARGINS':

http://www.yqcomputer.com/

HTH,
Herfried K. Wagner
--
MVP VB Classic, VB.NET
http://www.yqcomputer.com/

 
 
 

text allignment in richtext boxes

Post by Raman » Thu, 04 Sep 2003 00:05:02

I think the solution involves lowlevel win32 API calls. I think I need to
subclass all the basic edit controls to accomplish this. Is there any way I
can do this in C# with out subclassing the basic edit controls?

Ramana



http://www.yqcomputer.com/
ls/editcontrolreference/editcontrolmessages/em_setmargins.asp