Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text truncated in text field

Status
Not open for further replies.

kermit01de

Technical User
Jan 20, 2002
256
DE
A textfield in a continuous form is bound. The field contains "Hello Dolly how are you? I hope you are fine"

As the width on the form is only 5 cm it displays "Hello Dolly ho". Having the focus I can go further to the right and scroll the whole text, so it is not truncated because of the length.

Property is set to CanGrow = Yes - but that is only for reports, I assume.

Is there any way to emulate that property for continuous forms?

--------------------------------------
>>>>>> Bugs will appear in one part of a working program when another 'unrelated' part is modified <<<<<
 
How are ya kermit01de . . .
kermit01de said:
[blue] ... the width on the form is only 5 cm ...[/blue]
Thats 2 inches! What is it thats stopping you from increasing the forms width so you can accommodate your longest text?

You could also [blue]set the textbox height for two lines[/blue]. Any text spilling over will wrap to the 2nd line. Be aware: since this is a continuous form, all textboxes in that column will be 2 lines in height.

You can also adjust the width using the [blue]width[/blue] property. However its tough trying to figure how wide to set it. This is espcially true if the text is displayed in a true type font (porportional sizing & spacing). Also ... horizontally adjacent controls may prohibit any adjustment. I don't think you want to get into repositioning other controls as well.

[blue]Your Thoughts? . . .[/blue]


See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
I don't think it's possible to have different-sized textboxes on each record of a continuous form. I can make the width of the textbox change as the amount of text changes by putting code in the KeyPress event but that stretches the textbox on every row inthe continuous form.

Why not just have a three-line textbox with ScrollBars=Vertical?

Geoff Franklin
 
alvechurchdata said:
[blue]I don't think it's possible to have different-sized textboxes on each record of a continuous form.[/blue]
Obviously you've never tried it ... the height of the detail area will be limited to the tallest textbox.

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Ok, I know about the fact with the "tallest textbox" and played around with nearly any option, size etc. So I see, there is no way to handle that. Would be a nice feature for the future.

Just to explain why I was asking: The field is used to save information for a device that should be changed - let´s say a kind of call log. (1:n) - so it is possible to enter several "lines" of information for one device - each line/record autmatically saves the time when the information was entered and the description/text. But maybe one "line" is too long, so it is not completely displayed on the form whenever the device is called again. In this case it would be nice to have the "can grow" also active for a form, not only for the report - where it works as expected ...

Thank you for your thoughts!

--------------------------------------
>>>>>> Bugs will appear in one part of a working program when another 'unrelated' part is modified <<<<<
 
There's no law that saids a record has to be 1 line in height across the form.

Take the instance where an included field in a [blue]continuous form[/blue] is [blue]Memo[/blue] datatype where the user types in notes or a full description of something. [blue]Surely we wouldn't want to limit this field to one line![/blue]

Another instance is where you have a large number of fields that stretch across the form into never never land. Although this would satisify [blue]Excel[/blue] officianado's, there's no law preventing grouping of the controls in the detail area to keep all the controls in view. The verticle height is just taller. To see this in action use the form wizard to create a form with enough fields that go out of view and select the [blue]Justified[/blue] style when you get there ...

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top