Re: Freezing Lines

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



orgelizer via AccessMonster.com wrote:
I was going to write that I'd tried that, but I tried it again and
verified that you are correct. That now brings up another question.
When Can Grow is turned on, text will automatically wrap when it gets
to the end of the designated field size, but it doesn't appear to
when Can Grow is turned off. Is there a way to get word wrap while
having Can Grow turned off?

My reason for asking is that I am trying to duplicate something for
work, and I need the "fixed" lines and the word wrap.

So if you have line wrapping you want the line to stay in place and have
text written right on top of it?

With CanGrow turned on the TextBox will grow vertically and if the top of
the line is below the bottom of the TextBox then the line will be pushed
down the page.

If you make the TextBox tall enough (pull the bottom downward) so that its
bottom edge is below the top of the line then the line will not be pushed
down the page when the TextBox grows.

Another possible alternative is to use the Print method of the report in
code to draw the lines. With that method your code determines where the
lines appear without respect to the other controls at all.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



.



Relevant Pages

  • Re: Find The Text :-)
    ... personally I would suggest writing your own "wrap" code anyway because you will get much more control that way and much more flexibility, including the ability to do things that the DrawText API cannot do. ... If you don't fancy writing the "wrap" code yourself then a very simple alternative would be to use a borderless standard VB TextBox Control and set its size to the same as your required "wrap rectangle" and just dump your string into its Text property. ... You can then send it an EM_GETLINECOUNT to count the number of wrapped lines and EM_GETLINE messages to get those lines into a VB array of Strings. ... Private Declare Function SendMessage Lib "user32" _ ...
    (microsoft.public.vb.general.discussion)
  • Re: UserControl: resizing textbox issue
    ... The width and height properties of the control include any border, ... disappearing outside the bottom edge. ... This is a 'TextLight' control, and it's got a textbox the same size as the ... In the resize event, I am moving the textbox to the same space: as the usercontrol, but it easily loses the bottom edge of its border. ...
    (microsoft.public.vb.general.discussion)
  • Re: Is the pitch becoming a minefield?
    ... should make sure they wrap the bottom half of SA fast. ... Any bonus runs ... to the tail could be very decisive. ...
    (rec.sport.cricket)
  • Re: text outside merge cells despite clicking wrap text
    ... If you want wrap text in the box you will have to allow it to re-size. ... Maybe a Textbox would be better suited for your design. ... with spreaqdsheet design. ... double click cell. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: how to check if some module is installed or not
    ... > I want to check if some module, say, CGI, is installed in system, before I ... You can wrap a BEGIN around that if you need the action at compile ... Anno ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)