Re: Cannot change Scrollbars property - how to change Wrap?

From: alpine (alpine_don'tsendspam_at_mvps.org)
Date: 09/29/04


Date: Tue, 28 Sep 2004 23:30:27 -0600

On Wed, 29 Sep 2004 04:17:16 GMT, Atreju <me@somewhere.org> wrote:

>I noticed you cannot change, at runtime, the Scrollbars property of a
>multi-line textbox control. AFAIK this property actually determines
>the Wrap Text functionality.
>
>If you cannot change the Scrollbars property, is it not possible to
>enable & disable Text Wrap at runtime?

You can use the SetWindowLong API function to change the window style
for the edit control to include either or both scrollbars. For an
example have a look at the CheckScrollBar routine in the Splitter Bar
example at http://www.mvps.org/vbvision/

HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas



Relevant Pages

  • Re: Cannot change Scrollbars property - how to change Wrap?
    ... > the Wrap Text functionality. ... > If you cannot change the Scrollbars property, ... > enable & disable Text Wrap at runtime? ... Use a form variable (CurrentBox As Textbox) that points to the ...
    (microsoft.public.vb.general.discussion)
  • Cannot change Scrollbars property - how to change Wrap?
    ... AFAIK this property actually determines ... the Wrap Text functionality. ... If you cannot change the Scrollbars property, ... enable & disable Text Wrap at runtime? ...
    (microsoft.public.vb.general.discussion)
  • Re: HEADS UP! 6.0-RELEASE coming
    ... >> stability and functionality of the system, ... >> and really eager to wrap it up and get it out to everyone. ...
    (freebsd-current)
  • Re: HEADS UP! 6.0-RELEASE coming
    ... >> stability and functionality of the system, ... >> and really eager to wrap it up and get it out to everyone. ...
    (freebsd-stable)
  • Re: Settings and resources
    ... Juval Lowy wrote a wrapper in C# to access most of this functionality. ... Dan Fernandez blogs about it here (watch for line wrap): ...
    (microsoft.public.dotnet.languages.csharp)