PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
text allignment in richtext boxes
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
text allignment in richtext boxes
![]() |
text allignment in richtext boxes |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hello,
"Ramana" <vrkorada@hotmail.com> schrieb: > 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. PInvoke: 'SendMessage' + 'EM_SETMARGINS': http://msdn.microsoft.com/library/e..._setmargins.asp HTH, Herfried K. Wagner -- MVP · VB Classic, VB.NET http://www.mvps.org/dotnet |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 "Herfried K. Wagner [MVP]" <hirf.nosp@m.activevb.de> wrote in message news:uKqCc1UcDHA.3708@tk2msftngp13.phx.gbl... > Hello, > > "Ramana" <vrkorada@hotmail.com> schrieb: > > 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. > > PInvoke: 'SendMessage' + 'EM_SETMARGINS': > > http://msdn.microsoft.com/library/e...ctls/editcontro ls/editcontrolreference/editcontrolmessages/em_setmargins.asp > > HTH, > Herfried K. Wagner > -- > MVP · VB Classic, VB.NET > http://www.mvps.org/dotnet > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

