1. WordWrap in MleText
- Posted by Ad Rienks <kwibus at ZONNET.NL> Oct 06, 2000
- 402 views
------=_NextPart_000_0011_01C02FB9.A788F5C0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Just a quick question. I thought this would be easy, but I can't find it = in any documentation on Win32Lib I've read. How do you create a MleText control with WordWrap and ReadOnly? ReadOnly is easy, just use ES_READONLY as the last parameter in = create(). That works nice; but I could not find a constant for WordWrap. Thanks for your support, Ad ------=_NextPart_000_0011_01C02FB9.A788F5C0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV>Hello,</DIV> <DIV> </DIV> <DIV>Just a quick question. I thought this would be easy, but I can't = find it in=20 any documentation on Win32Lib I've read.</DIV> <DIV>How do you create a MleText control with WordWrap and = ReadOnly?</DIV> <DIV>ReadOnly is easy, just use ES_READONLY as the last parameter in=20 create().</DIV> <DIV>That works nice; but I could not find a constant for = WordWrap.</DIV> <DIV> </DIV> <DIV>Thanks for your support,</DIV> <DIV> </DIV> ------=_NextPart_000_0011_01C02FB9.A788F5C0--
2. Re: WordWrap in MleText
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 08, 2000
- 390 views
Ad, I don't know if this will help or not (it just confused me), but talks about how "to replace the default wordwrap function with an application-defined wordwrap function" in a MLE. What most confuses me is the implication that a MLE already has a *default* word wrap! Also, and related, I got this (talking about ES_MULTILINE): "If you do not specify ES_AUTOHSCROLL, the control automatically wraps words to the beginning of the next line when necessary. " from: Dan Moyer ----- Original Message ----- From: "Ad Rienks" <kwibus at ZONNET.NL> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Friday, October 06, 2000 8:19 AM Subject: WordWrap in MleText Hello, Just a quick question. I thought this would be easy, but I can't find it in any documentation on Win32Lib I've read. How do you create a MleText control with WordWrap and ReadOnly? ReadOnly is easy, just use ES_READONLY as the last parameter in create(). That works nice; but I could not find a constant for WordWrap. Thanks for your support, Ad
3. Re: WordWrap in MleText
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 08, 2000
- 385 views
Ad, Derek, David, Judith, and all, I find this hard to believe, but I think I found something *very* interesting! if you delete "WS_HSCROLL" from Win32Lib at "MleEdit" , you can then have AUTOMATIC WORD WRAP! Without doing or adding ANYTHING else! Just like that! Wow! ('cause it's built it already somewhere.) And as a BONUS (?), it appears to give an automatic "text selection" function, at least visually, and I would suppose that there should be some way to programmatically get the selected text or its boundaries, or something, too. Does this look right to anyone else??? Dan Moyer ----- Original Message ----- From: "Ad Rienks" <kwibus at ZONNET.NL> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Friday, October 06, 2000 8:19 AM Subject: WordWrap in MleText Hello, Just a quick question. I thought this would be easy, but I can't find it in any documentation on Win32Lib I've read. How do you create a MleText control with WordWrap and ReadOnly? ReadOnly is easy, just use ES_READONLY as the last parameter in create(). That works nice; but I could not find a constant for WordWrap. Thanks for your support, Ad
4. Re: WordWrap in MleText
- Posted by Judith Evans <camping at FLASH.NET> Oct 08, 2000
- 367 views
Dan, That's correct. You can also remove the Vertical scrollbar and have a nice 'box' that can't grow on you which I have used in a little book program I started but have not completed. I had asked for this awhile ago 'cause I hate modifying win32lib.ew but the general feedback was we didn't want to kludge up win32lib with all these 'special' controls and that maybe sometype of 'style' change could be incorporated to achieve. I don't know where all that stands since I've been completely absorbed in IDE. I've still 'stuck' back on version 50. Judith Evans On Sun, 8 Oct 2000 03:29:52 -0700, Dan B Moyer <DANMOYER at PRODIGY.NET> wrote: >Ad, Derek, David, Judith, and all, > >I find this hard to believe, but I think I found something *very* >interesting! > >if you delete "WS_HSCROLL" from Win32Lib at >"MleEdit" , > >you can then have AUTOMATIC WORD WRAP! Without doing or adding ANYTHING >else! Just like that! Wow! ('cause it's built it already somewhere.) > >And as a BONUS (?), it appears to give an automatic "text selection" >function, at least visually, and I would suppose that there should be some >way to programmatically get the selected text or its boundaries, or >something, too. > >Does this look right to anyone else??? > >Dan Moyer > > >----- Original Message ----- >From: "Ad Rienks" <kwibus at ZONNET.NL> >To: <EUPHORIA at LISTSERV.MUOHIO.EDU> >Sent: Friday, October 06, 2000 8:19 AM >Subject: WordWrap in MleText > > >Hello, > >Just a quick question. I thought this would be easy, but I can't find it in >any documentation on Win32Lib I've read. >How do you create a MleText control with WordWrap and ReadOnly? >ReadOnly is easy, just use ES_READONLY as the last parameter in create(). >That works nice; but I could not find a constant for WordWrap. > >Thanks for your support, > >Ad
5. Re: WordWrap in MleText
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Oct 08, 2000
- 379 views
- Last edited Oct 09, 2000
Hi, in the next release of win32lib, you will be able to specify the exact flags that are used when creating controls, thereby getting around the default flags for a class. --- Derek ----- Original Message ----- From: "Judith Evans" <camping at FLASH.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, October 08, 2000 9:42 PM Subject: Re: WordWrap in MleText > Dan, > That's correct. You can also remove the Vertical scrollbar and have a nice > 'box' that can't grow on you which I have used in a little book program I > started but have not completed. > > I had asked for this awhile ago 'cause I hate modifying win32lib.ew but the > general feedback was we didn't want to kludge up win32lib with all these > 'special' controls and that maybe sometype of 'style' change could be > incorporated to achieve. I don't know where all that stands since I've been > completely absorbed in IDE. I've still 'stuck' back on version 50. > > Judith Evans > > > > On Sun, 8 Oct 2000 03:29:52 -0700, Dan B Moyer <DANMOYER at PRODIGY.NET> wrote: > > >Ad, Derek, David, Judith, and all, > > > >I find this hard to believe, but I think I found something *very* > >interesting! > > > >if you delete "WS_HSCROLL" from Win32Lib at > >"MleEdit" , > > > >you can then have AUTOMATIC WORD WRAP! Without doing or adding ANYTHING > >else! Just like that! Wow! ('cause it's built it already somewhere.) > > > >And as a BONUS (?), it appears to give an automatic "text selection" > >function, at least visually, and I would suppose that there should be some > >way to programmatically get the selected text or its boundaries, or > >something, too. > > > >Does this look right to anyone else??? > > > >Dan Moyer > > > > > >----- Original Message ----- > >From: "Ad Rienks" <kwibus at ZONNET.NL> > >To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > >Sent: Friday, October 06, 2000 8:19 AM > >Subject: WordWrap in MleText > > > > > >Hello, > > > >Just a quick question. I thought this would be easy, but I can't find it in > >any documentation on Win32Lib I've read. > >How do you create a MleText control with WordWrap and ReadOnly? > >ReadOnly is easy, just use ES_READONLY as the last parameter in create(). > >That works nice; but I could not find a constant for WordWrap. > > > >Thanks for your support, > > > >Ad
6. Re: WordWrap in MleText
- Posted by Ad Rienks <kwibus at ZONNET.NL> Oct 08, 2000
- 375 views
Thanks Dan, I thought this would be easy. Thanks for pointing me in the right direction. The WordWrap *should be* default behavior in an MLE, it only is not because the definition in Win32Lib contains WS_HSCROLL. Look at the following demo: -- MleText Demo with ReadOnly -- for this demo you should at least first 'comment out' WS_HSCROLL in the -- include file Win32Lib.ew (line 5550 in v0.53) include Win32Lib.ew -- v0.53, by David Cuny & friends constant Win = create(Window, "ReadOnly Test", 0, 80, 80, 200, 200, 0), MLE = create(MleText, "", Win, 10, 10, 170, 40, ES_READONLY) setText(MLE, "For this test I commented out WS_HSCROLL and WS_TABSTOP from Win32Lib.ew") WinMain(Win, Normal) -- end demo I would propose to the Win32Lib development team to leave the WS_HSCROLL out of the Win32Lib.ew file definition. The programmer can than be given the possibility to add this again, along with ES_READONLY and maybe other attributes (if needed). After all, I think that an MLE mostly will be used for inputting and/or displaying wrapped text. One exception I can think of that does not want wordwrap, should be an editor window. But then again, RichEdit can be used for that. What is your reaction to this, Win32Lib developers? Ad ----- Oorspronkelijk bericht ----- Van: Dan B Moyer <DANMOYER at PRODIGY.NET> Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> Verzonden: zondag 8 oktober 2000 11:47 Onderwerp: Re: WordWrap in MleText > Ad, > > I don't know if this will help or not (it just confused me), but > http://support.microsoft.com/support/kb/articles/Q109/5/51.asp > talks about how "to replace the default wordwrap function with an > application-defined wordwrap function" in a MLE. What most confuses me is > the implication that a MLE already has a *default* word wrap! > > Also, and related, I got this (talking about ES_MULTILINE): > "If you do not specify ES_AUTOHSCROLL, the control automatically wraps words > to the beginning of the next line when necessary. " > from: > http://msdn.microsoft.com/library/psdk/winui/editcon_7rqr.htm > > Dan Moyer > > ----- Original Message ----- > From: "Ad Rienks" <kwibus at ZONNET.NL> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Sent: Friday, October 06, 2000 8:19 AM > Subject: WordWrap in MleText > > > Hello, > > Just a quick question. I thought this would be easy, but I can't find it in > any documentation on Win32Lib I've read. > How do you create a MleText control with WordWrap and ReadOnly? > ReadOnly is easy, just use ES_READONLY as the last parameter in create(). > That works nice; but I could not find a constant for WordWrap. > > Thanks for your support, > > Ad
7. Re: WordWrap in MleText
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 08, 2000
- 371 views
Derek, Neat! Now, do you or anyone else know the max (content) size a RichText control can take, and did I see something some time ago about some way to increase it (well, to increase size of MLE)? Dan ----- Original Message ----- From: "Derek Parnell" <dparnell at BIGPOND.NET.AU> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, October 08, 2000 4:05 AM Subject: Re: WordWrap in MleText > Hi, > in the next release of win32lib, you will be able to specify the exact flags > that are used when creating controls, thereby getting around the default > flags for a class. > --- > Derek > > > ----- Original Message ----- > From: "Judith Evans" <camping at FLASH.NET> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Sent: Sunday, October 08, 2000 9:42 PM > Subject: Re: WordWrap in MleText > > > > Dan, > > That's correct. You can also remove the Vertical scrollbar and have a nice > > 'box' that can't grow on you which I have used in a little book program I > > started but have not completed. > > > > I had asked for this awhile ago 'cause I hate modifying win32lib.ew but > the > > general feedback was we didn't want to kludge up win32lib with all these > > 'special' controls and that maybe sometype of 'style' change could be > > incorporated to achieve. I don't know where all that stands since I've > been > > completely absorbed in IDE. I've still 'stuck' back on version 50. > > > > Judith Evans > > > > > > > > On Sun, 8 Oct 2000 03:29:52 -0700, Dan B Moyer <DANMOYER at PRODIGY.NET> > wrote: > > > > >Ad, Derek, David, Judith, and all, > > > > > >I find this hard to believe, but I think I found something *very* > > >interesting! > > > > > >if you delete "WS_HSCROLL" from Win32Lib at > > >"MleEdit" , > > > > > >you can then have AUTOMATIC WORD WRAP! Without doing or adding ANYTHING > > >else! Just like that! Wow! ('cause it's built it already somewhere.) > > > > > >And as a BONUS (?), it appears to give an automatic "text selection" > > >function, at least visually, and I would suppose that there should be > some > > >way to programmatically get the selected text or its boundaries, or > > >something, too. > > > > > >Does this look right to anyone else??? > > > > > >Dan Moyer > > > > > > > > >----- Original Message ----- > > >From: "Ad Rienks" <kwibus at ZONNET.NL> > > >To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > >Sent: Friday, October 06, 2000 8:19 AM > > >Subject: WordWrap in MleText > > > > > > > > >Hello, > > > > > >Just a quick question. I thought this would be easy, but I can't find it > in > > >any documentation on Win32Lib I've read. > > >How do you create a MleText control with WordWrap and ReadOnly? > > >ReadOnly is easy, just use ES_READONLY as the last parameter in create(). > > >That works nice; but I could not find a constant for WordWrap. > > > > > >Thanks for your support, > > > > > >Ad
8. Re: WordWrap in MleText
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 08, 2000
- 380 views
Ad, You're welcome :) The test you sent is very similar to what I did *after* I wrote you, which led me to my later observation about removing WS_HSCROLL. After I saw what MS said about word wrap being a default, I had to see what was making it NOT be functional, & took out ALL the styles of the MLE, and then replaced them one at a time until I first saw word wrap work, and then continued until it disappeared. Looks like Derek is ahead of you, he's already made styles user over-rideable. You probably have a good reason, but why *wouldn't* you want word wrap in an editor? Looks to me that RichText *already* functions with word wrap, though. Dan ----- Original Message ----- From: "Ad Rienks" <kwibus at ZONNET.NL> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, October 08, 2000 4:12 AM Subject: Re: WordWrap in MleText > Thanks Dan, > > I thought this would be easy. Thanks for pointing me in the right direction. > The WordWrap *should be* default behavior in an MLE, it only is not because > the definition in Win32Lib contains WS_HSCROLL. Look at the following demo: > > -- MleText Demo with ReadOnly > -- for this demo you should at least first 'comment out' WS_HSCROLL in the > -- include file Win32Lib.ew (line 5550 in v0.53) > > include Win32Lib.ew -- v0.53, by David Cuny & friends > > constant > Win = create(Window, "ReadOnly Test", 0, 80, 80, 200, 200, 0), > MLE = create(MleText, "", Win, 10, 10, 170, 40, ES_READONLY) > > setText(MLE, > "For this test I commented out WS_HSCROLL and WS_TABSTOP from > Win32Lib.ew") > > WinMain(Win, Normal) > -- end demo > > I would propose to the Win32Lib development team to leave the WS_HSCROLL out > of the Win32Lib.ew file definition. The programmer can than be given the > possibility to add this again, along with ES_READONLY and maybe other > attributes (if needed). After all, I think that an MLE mostly will be used > for inputting and/or displaying wrapped text. One exception I can think of > that does not want wordwrap, should be an editor window. But then again, > RichEdit can be used for that. > > What is your reaction to this, Win32Lib developers? > > Ad > > ----- Oorspronkelijk bericht ----- > Van: Dan B Moyer <DANMOYER at PRODIGY.NET> > Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Verzonden: zondag 8 oktober 2000 11:47 > Onderwerp: Re: WordWrap in MleText > > > > Ad, > > > > I don't know if this will help or not (it just confused me), but > > http://support.microsoft.com/support/kb/articles/Q109/5/51.asp > > talks about how "to replace the default wordwrap function with an > > application-defined wordwrap function" in a MLE. What most confuses me is > > the implication that a MLE already has a *default* word wrap! > > > > Also, and related, I got this (talking about ES_MULTILINE): > > "If you do not specify ES_AUTOHSCROLL, the control automatically wraps > words > > to the beginning of the next line when necessary. " > > from: > > http://msdn.microsoft.com/library/psdk/winui/editcon_7rqr.htm > > > > Dan Moyer > > > > ----- Original Message ----- > > From: "Ad Rienks" <kwibus at ZONNET.NL> > > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > Sent: Friday, October 06, 2000 8:19 AM > > Subject: WordWrap in MleText > > > > > > Hello, > > > > Just a quick question. I thought this would be easy, but I can't find it > in > > any documentation on Win32Lib I've read. > > How do you create a MleText control with WordWrap and ReadOnly? > > ReadOnly is easy, just use ES_READONLY as the last parameter in create(). > > That works nice; but I could not find a constant for WordWrap. > > > > Thanks for your support, > > > > Ad
9. Re: WordWrap in MleText
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Oct 09, 2000
- 375 views
> Now, do you or anyone else know the max (content) size a RichText contr= ol > can take, and did I see something some time ago about some way to incre= ase > it (well, to increase size of MLE)? > > Dan below is an extract from Microsoft's documentation: --------------------------- Before EM_LIMITTEXT is called, the default limit for the amount of text a user can enter in an edit control is 32,767 characters. Edit controls on Windows NT/ 2000: For single-line edit controls, the tex= t limit is either 0x7FFFFFFE bytes or the value of the wParam parameter, whichever is smaller. For multiline edit controls, this value is either =96= 1 bytes or the value of the wParam parameter, whichever is smaller. Edit controls on Windows 95/98: For single-line edit controls, the text limit is either 0x7FFE bytes or the value of the wParam parameter, whiche= ver is smaller. For multiline edit controls, this value is either 0xFFFF byte= s or the value of the wParam parameter, whichever is smaller. Rich edit controls: Use the message EM_EXLIMITTEXT for text length values greater than 64K. --------------------------- From=20this I can gather that MleText controls can be set to #FFFF using = the LimitText function but that RichEdit can be any length. ---- Derek
10. Re: WordWrap in MleText
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Oct 09, 2000
- 405 views
> You probably have a good reason, but why *wouldn't* you want word wrap in an > editor? The Windows word wrap is a visual thing. It doesn't actually insert CR into your text. It depends on the size of the control containing the text. Some editors allow you to set a limit (say 72 characters) regardless of how you may have sized the display control. With Window's MleText or RichEdit, your text lines could actually be very long, but only appear short. For editing program code this is probably not what you want. For editing prose though, this is most likely exactly what you want. Judith, can I suggest you use RichEdit for the code editor but without word wrap. This allows you to edit very large files and still have line length in the programmer's control. Plus it makes color-coding easier. ----- Derek
11. Re: WordWrap in MleText
- Posted by Ad Rienks <kwibus at ZONNET.NL> Oct 08, 2000
- 402 views
Dan, I further experimented and found out that after removing WS_VSCROLL and putting ES_AUTOVSCROLL in it's place, the control was exactly what I wanted it to be. Therefore I'm very happy with Derek's announcement. Aesthetically, I don't like such a thick scrollbar in a small window! David, Derek, Matt, Brian, anyone, isn't it possible to have getAttribute() and setAttribute() functions in Win32Lib, like in my once-beloved VEL by Gary Dumer? Thanks, Ad ----- Oorspronkelijk bericht ----- Van: Dan B Moyer <DANMOYER at PRODIGY.NET> Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> Verzonden: zondag 8 oktober 2000 13:35 Onderwerp: Re: WordWrap in MleText > Ad, > > You're welcome :) The test you sent is very similar to what I did *after* I > wrote you, which led me to my later observation about removing WS_HSCROLL. > After I saw what MS said about word wrap being a default, I had to see what > was making it NOT be functional, & took out ALL the styles of the MLE, and > then replaced them one at a time until I first saw word wrap work, and then > continued until it disappeared. > > Looks like Derek is ahead of you, he's already made styles user > over-rideable. > > You probably have a good reason, but why *wouldn't* you want word wrap in an > editor? Looks to me that RichText *already* functions with word wrap, > though. > > Dan > > ----- Original Message ----- > From: "Ad Rienks" <kwibus at ZONNET.NL> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Sent: Sunday, October 08, 2000 4:12 AM > Subject: Re: WordWrap in MleText > > > > Thanks Dan, > > > > I thought this would be easy. Thanks for pointing me in the right > direction. > > The WordWrap *should be* default behavior in an MLE, it only is not > because > > the definition in Win32Lib contains WS_HSCROLL. Look at the following > demo: > > > > -- MleText Demo with ReadOnly > > -- for this demo you should at least first 'comment out' WS_HSCROLL in > the > > -- include file Win32Lib.ew (line 5550 in v0.53) > > > > include Win32Lib.ew -- v0.53, by David Cuny & friends > > > > constant > > Win = create(Window, "ReadOnly Test", 0, 80, 80, 200, 200, 0), > > MLE = create(MleText, "", Win, 10, 10, 170, 40, ES_READONLY) > > > > setText(MLE, > > "For this test I commented out WS_HSCROLL and WS_TABSTOP from > > Win32Lib.ew") > > > > WinMain(Win, Normal) > > -- end demo > > > > I would propose to the Win32Lib development team to leave the WS_HSCROLL > out > > of the Win32Lib.ew file definition. The programmer can than be given the > > possibility to add this again, along with ES_READONLY and maybe other > > attributes (if needed). After all, I think that an MLE mostly will be used > > for inputting and/or displaying wrapped text. One exception I can think of > > that does not want wordwrap, should be an editor window. But then again, > > RichEdit can be used for that. > > > > What is your reaction to this, Win32Lib developers? > > > > Ad > > > > ----- Oorspronkelijk bericht ----- > > Van: Dan B Moyer <DANMOYER at PRODIGY.NET> > > Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > Verzonden: zondag 8 oktober 2000 11:47 > > Onderwerp: Re: WordWrap in MleText > > > > > > > Ad, > > > > > > I don't know if this will help or not (it just confused me), but > > > http://support.microsoft.com/support/kb/articles/Q109/5/51.asp > > > talks about how "to replace the default wordwrap function with an > > > application-defined wordwrap function" in a MLE. What most confuses me > is > > > the implication that a MLE already has a *default* word wrap! > > > > > > Also, and related, I got this (talking about ES_MULTILINE): > > > "If you do not specify ES_AUTOHSCROLL, the control automatically wraps > > words > > > to the beginning of the next line when necessary. " > > > from: > > > http://msdn.microsoft.com/library/psdk/winui/editcon_7rqr.htm > > > > > > Dan Moyer > > > > > > ----- Original Message ----- > > > From: "Ad Rienks" <kwibus at ZONNET.NL> > > > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > > Sent: Friday, October 06, 2000 8:19 AM > > > Subject: WordWrap in MleText > > > > > > > > > Hello, > > > > > > Just a quick question. I thought this would be easy, but I can't find it > > in > > > any documentation on Win32Lib I've read. > > > How do you create a MleText control with WordWrap and ReadOnly? > > > ReadOnly is easy, just use ES_READONLY as the last parameter in > create(). > > > That works nice; but I could not find a constant for WordWrap. > > > > > > Thanks for your support, > > > > > > Ad
12. Re: WordWrap in MleText
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Oct 09, 2000
- 381 views
Yes Al, they are coming. Might not make the next release, but will be there soon. ----- Original Message ----- From: "Ad Rienks" <kwibus at ZONNET.NL> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, October 09, 2000 12:40 AM Subject: Re: WordWrap in MleText > Dan, > > I further experimented and found out that after removing WS_VSCROLL and > putting ES_AUTOVSCROLL in it's place, the control was exactly what I wanted > it to be. > Therefore I'm very happy with Derek's announcement. > Aesthetically, I don't like such a thick scrollbar in a small window! > > David, Derek, Matt, Brian, anyone, isn't it possible to have getAttribute() > and setAttribute() functions in Win32Lib, like in my once-beloved VEL by > Gary Dumer? > > Thanks, Ad > > ----- Oorspronkelijk bericht ----- > Van: Dan B Moyer <DANMOYER at PRODIGY.NET> > Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Verzonden: zondag 8 oktober 2000 13:35 > Onderwerp: Re: WordWrap in MleText > > > > Ad, > > > > You're welcome :) The test you sent is very similar to what I did *after* > I > > wrote you, which led me to my later observation about removing WS_HSCROLL. > > After I saw what MS said about word wrap being a default, I had to see > what > > was making it NOT be functional, & took out ALL the styles of the MLE, and > > then replaced them one at a time until I first saw word wrap work, and > then > > continued until it disappeared. > > > > Looks like Derek is ahead of you, he's already made styles user > > over-rideable. > > > > You probably have a good reason, but why *wouldn't* you want word wrap in > an > > editor? Looks to me that RichText *already* functions with word wrap, > > though. > > > > Dan > > > > ----- Original Message ----- > > From: "Ad Rienks" <kwibus at ZONNET.NL> > > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > Sent: Sunday, October 08, 2000 4:12 AM > > Subject: Re: WordWrap in MleText > > > > > > > Thanks Dan, > > > > > > I thought this would be easy. Thanks for pointing me in the right > > direction. > > > The WordWrap *should be* default behavior in an MLE, it only is not > > because > > > the definition in Win32Lib contains WS_HSCROLL. Look at the following > > demo: > > > > > > -- MleText Demo with ReadOnly > > > -- for this demo you should at least first 'comment out' WS_HSCROLL in > > the > > > -- include file Win32Lib.ew (line 5550 in v0.53) > > > > > > include Win32Lib.ew -- v0.53, by David Cuny & friends > > > > > > constant > > > Win = create(Window, "ReadOnly Test", 0, 80, 80, 200, 200, 0), > > > MLE = create(MleText, "", Win, 10, 10, 170, 40, ES_READONLY) > > > > > > setText(MLE, > > > "For this test I commented out WS_HSCROLL and WS_TABSTOP from > > > Win32Lib.ew") > > > > > > WinMain(Win, Normal) > > > -- end demo > > > > > > I would propose to the Win32Lib development team to leave the WS_HSCROLL > > out > > > of the Win32Lib.ew file definition. The programmer can than be given the > > > possibility to add this again, along with ES_READONLY and maybe other > > > attributes (if needed). After all, I think that an MLE mostly will be > used > > > for inputting and/or displaying wrapped text. One exception I can think > of > > > that does not want wordwrap, should be an editor window. But then again, > > > RichEdit can be used for that. > > > > > > What is your reaction to this, Win32Lib developers? > > > > > > Ad > > > > > > ----- Oorspronkelijk bericht ----- > > > Van: Dan B Moyer <DANMOYER at PRODIGY.NET> > > > Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > > Verzonden: zondag 8 oktober 2000 11:47 > > > Onderwerp: Re: WordWrap in MleText > > > > > > > > > > Ad, > > > > > > > > I don't know if this will help or not (it just confused me), but > > > > http://support.microsoft.com/support/kb/articles/Q109/5/51.asp > > > > talks about how "to replace the default wordwrap function with an > > > > application-defined wordwrap function" in a MLE. What most confuses > me > > is > > > > the implication that a MLE already has a *default* word wrap! > > > > > > > > Also, and related, I got this (talking about ES_MULTILINE): > > > > "If you do not specify ES_AUTOHSCROLL, the control automatically wraps > > > words > > > > to the beginning of the next line when necessary. " > > > > from: > > > > http://msdn.microsoft.com/library/psdk/winui/editcon_7rqr.htm > > > > > > > > Dan Moyer > > > > > > > > ----- Original Message ----- > > > > From: "Ad Rienks" <kwibus at ZONNET.NL> > > > > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > > > Sent: Friday, October 06, 2000 8:19 AM > > > > Subject: WordWrap in MleText > > > > > > > > > > > > Hello, > > > > > > > > Just a quick question. I thought this would be easy, but I can't find > it > > > in > > > > any documentation on Win32Lib I've read. > > > > How do you create a MleText control with WordWrap and ReadOnly? > > > > ReadOnly is easy, just use ES_READONLY as the last parameter in > > create(). > > > > That works nice; but I could not find a constant for WordWrap. > > > > > > > > Thanks for your support, > > > > > > > > Ad
13. Re: WordWrap in MleText
- Posted by Matt Lewis <matthewwalkerlewis at YAHOO.COM> Oct 08, 2000
- 383 views
--- Dan B Moyer <DANMOYER at PRODIGY.NET> wrote: > Now, do you or anyone else know the max (content) size a RichText control > can take, and did I see something some time ago about some way to increase > it (well, to increase size of MLE)? My understanding, from reading the documentation, is that you can put as much into a richedit as you want. However, when you do that, you lose some functionality. Specifically, you can only use the find messages to find text within the first 64K of data. This is because windows uses 32 bits to denote the range, where the high/low bits represent the start/finish (I don't remember which is which--take a look at win32lib if you're curious). I've thought a little about this, and I suspect that you'd have to do some fancy stuff by watching how big your data got, and streaming stuff in and out at the begginning or end to make sure you don't go over the limit. ===== -- Matt Lewis http://members.nbci.com/matthewlewis __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/
14. Re: WordWrap in MleText
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 08, 2000
- 383 views
Ad, Glad it worked! Makes a lot of sense to add autovscroll, too! Dan ----- Original Message ----- From: "Ad Rienks" <kwibus at ZONNET.NL> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, October 08, 2000 6:40 AM Subject: Re: WordWrap in MleText > Dan, > > I further experimented and found out that after removing WS_VSCROLL and > putting ES_AUTOVSCROLL in it's place, the control was exactly what I wanted > it to be. > Therefore I'm very happy with Derek's announcement. > Aesthetically, I don't like such a thick scrollbar in a small window! > > David, Derek, Matt, Brian, anyone, isn't it possible to have getAttribute() > and setAttribute() functions in Win32Lib, like in my once-beloved VEL by > Gary Dumer? > > Thanks, Ad > > ----- Oorspronkelijk bericht ----- > Van: Dan B Moyer <DANMOYER at PRODIGY.NET> > Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Verzonden: zondag 8 oktober 2000 13:35 > Onderwerp: Re: WordWrap in MleText > > > > Ad, > > > > You're welcome :) The test you sent is very similar to what I did *after* > I > > wrote you, which led me to my later observation about removing WS_HSCROLL. > > After I saw what MS said about word wrap being a default, I had to see > what > > was making it NOT be functional, & took out ALL the styles of the MLE, and > > then replaced them one at a time until I first saw word wrap work, and > then > > continued until it disappeared. > > > > Looks like Derek is ahead of you, he's already made styles user > > over-rideable. > > > > You probably have a good reason, but why *wouldn't* you want word wrap in > an > > editor? Looks to me that RichText *already* functions with word wrap, > > though. > > > > Dan > > > > ----- Original Message ----- > > From: "Ad Rienks" <kwibus at ZONNET.NL> > > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > Sent: Sunday, October 08, 2000 4:12 AM > > Subject: Re: WordWrap in MleText > > > > > > > Thanks Dan, > > > > > > I thought this would be easy. Thanks for pointing me in the right > > direction. > > > The WordWrap *should be* default behavior in an MLE, it only is not > > because > > > the definition in Win32Lib contains WS_HSCROLL. Look at the following > > demo: > > > > > > -- MleText Demo with ReadOnly > > > -- for this demo you should at least first 'comment out' WS_HSCROLL in > > the > > > -- include file Win32Lib.ew (line 5550 in v0.53) > > > > > > include Win32Lib.ew -- v0.53, by David Cuny & friends > > > > > > constant > > > Win = create(Window, "ReadOnly Test", 0, 80, 80, 200, 200, 0), > > > MLE = create(MleText, "", Win, 10, 10, 170, 40, ES_READONLY) > > > > > > setText(MLE, > > > "For this test I commented out WS_HSCROLL and WS_TABSTOP from > > > Win32Lib.ew") > > > > > > WinMain(Win, Normal) > > > -- end demo > > > > > > I would propose to the Win32Lib development team to leave the WS_HSCROLL > > out > > > of the Win32Lib.ew file definition. The programmer can than be given the > > > possibility to add this again, along with ES_READONLY and maybe other > > > attributes (if needed). After all, I think that an MLE mostly will be > used > > > for inputting and/or displaying wrapped text. One exception I can think > of > > > that does not want wordwrap, should be an editor window. But then again, > > > RichEdit can be used for that. > > > > > > What is your reaction to this, Win32Lib developers? > > > > > > Ad > > > > > > ----- Oorspronkelijk bericht ----- > > > Van: Dan B Moyer <DANMOYER at PRODIGY.NET> > > > Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > > Verzonden: zondag 8 oktober 2000 11:47 > > > Onderwerp: Re: WordWrap in MleText > > > > > > > > > > Ad, > > > > > > > > I don't know if this will help or not (it just confused me), but > > > > http://support.microsoft.com/support/kb/articles/Q109/5/51.asp > > > > talks about how "to replace the default wordwrap function with an > > > > application-defined wordwrap function" in a MLE. What most confuses > me > > is > > > > the implication that a MLE already has a *default* word wrap! > > > > > > > > Also, and related, I got this (talking about ES_MULTILINE): > > > > "If you do not specify ES_AUTOHSCROLL, the control automatically wraps > > > words > > > > to the beginning of the next line when necessary. " > > > > from: > > > > http://msdn.microsoft.com/library/psdk/winui/editcon_7rqr.htm > > > > > > > > Dan Moyer > > > > > > > > ----- Original Message ----- > > > > From: "Ad Rienks" <kwibus at ZONNET.NL> > > > > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > > > > Sent: Friday, October 06, 2000 8:19 AM > > > > Subject: WordWrap in MleText > > > > > > > > > > > > Hello, > > > > > > > > Just a quick question. I thought this would be easy, but I can't find > it > > > in > > > > any documentation on Win32Lib I've read. > > > > How do you create a MleText control with WordWrap and ReadOnly? > > > > ReadOnly is easy, just use ES_READONLY as the last parameter in > > create(). > > > > That works nice; but I could not find a constant for WordWrap. > > > > > > > > Thanks for your support, > > > > > > > > Ad