Re: WordWrap in MleText

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 blink 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu