Re: Cannot change Scrollbars property - how to change Wrap?
From: alpine (alpine_don'tsendspam_at_mvps.org)
Date: 09/29/04
- Next message: David Youngblood: "Re: How can I improve this code?"
- Previous message: Larry Serflaten: "Re: Cannot change Scrollbars property - how to change Wrap?"
- In reply to: Atreju: "Cannot change Scrollbars property - how to change Wrap?"
- Next in thread: Randy Birch: "Re: Cannot change Scrollbars property - how to change Wrap?"
- Reply: Randy Birch: "Re: Cannot change Scrollbars property - how to change Wrap?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: David Youngblood: "Re: How can I improve this code?"
- Previous message: Larry Serflaten: "Re: Cannot change Scrollbars property - how to change Wrap?"
- In reply to: Atreju: "Cannot change Scrollbars property - how to change Wrap?"
- Next in thread: Randy Birch: "Re: Cannot change Scrollbars property - how to change Wrap?"
- Reply: Randy Birch: "Re: Cannot change Scrollbars property - how to change Wrap?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|