|
-
Apr 28th, 2001, 08:10 PM
#1
Thread Starter
Frenzied Member
wordwrap & richtextbox
How can I get rid of the wordwrap on a richtextbox but still allow the user to make a hard return and goto the next line? I tried making the rightmargin property a huge number, but it acts the same.
retired member. Thanks for everything 
-
Apr 28th, 2001, 09:46 PM
#2
Hyperactive Member
u want to get rid of the word wrap
when i worked with the richtextbox i had no problem with the wordwrap
i actually needed to set the right margin to a large number to get a wordwrap ... if the right margin is set to zero than you won't get a wordwrap and you should be able to press enter
-
Nov 12th, 2002, 01:24 AM
#3
Addicted Member
my right margin is set to zero and trust me, theres wordwrap, can anyone help?
-
Nov 12th, 2002, 02:07 AM
#4
Addicted Member
-
Nov 12th, 2002, 08:37 AM
#5
-
Nov 12th, 2002, 09:07 AM
#6
Hyperactive Member
I can use this too.
-
Nov 12th, 2002, 12:00 PM
#7
Addicted Member
I dont know about anyone else, but that won't let me reactivate wordwrap once its disabled
Anyway its ok, I found this. (Works much better in my opinion)
http://www.developerfusion.com/show/16/10/
I just changed the select case to this:
VB Code:
SendMessageLong frmText.txtData.hwnd, EM_SETTARGETDEVICE, 0, 1 - chkWordWrap.Value
Because I don't want WYSIWYG and its shorter
I have one question about Constants though...
In this code there are these two constants:
VB Code:
Public Const WM_USER = &H400
Public Const EM_SETTARGETDEVICE = (WM_USER + 72)
Why not just replace "EM_SETTARGETDEVICE" with "(&H400 + 72)", if it didn't work that way I would understand, but it DOES work that way
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|