TextBox margins

  • Thread starter Thread starter Mike Devine
  • Start date Start date
M

Mike Devine

I have created a control comprising a textbox & a button.
The textbox contains the button and the button is docked
to the right of the textbox.

Is there any way of setting the 'margins' of the textbox
control so I can protect the area in the textbox where
the button is located.

I am using the control as an entry field with a look up
button and I am losing some of the text entered,
especially when the text is right aligned.

Cheers

Mike
 
Hello,

Mike Devine said:
I have created a control comprising a textbox & a button.
The textbox contains the button and the button is docked
to the right of the textbox.

Is there any way of setting the 'margins' of the textbox
control so I can protect the area in the textbox where
the button is located.

I am using the control as an entry field with a look up
button and I am losing some of the text entered,
especially when the text is right aligned.

PInvoke: 'SendMessage' + 'EM_SETMARGINS':

http://msdn.microsoft.com/library/e...ference/editcontrolmessages/em_setmargins.asp

HTH,
Herfried K. Wagner
 
Thanks for the information. I am trying to do this in a
c# control so I have created a public static external
SendMessage method which I will invoke to get & set the
margins of a particular control. However, what is the
value of the EM_SETMARGINS, EM_GETMARGINS? are they int,
long or string. If there are any samples you know of
using the SendMessage it would be a big help.

Cheers

Mike
 
Hello,

Mike Devine said:
Thanks for the information. I am trying to do this in a
c# control so I have created a public static external
SendMessage method which I will invoke to get & set the
margins of a particular control. However, what is the
value of the EM_SETMARGINS, EM_GETMARGINS? are they int,
long or string. If there are any samples you know of
using the SendMessage it would be a big help.

http://groups.google.de/[email protected]

\\\
Private Const EM_SETMARGINS = &HD3
Private Const EM_GETMARGINS = &HD4
///

HTH,
Herfried K. Wagner
 
Back
Top