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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

control borders and cangrow property

Status
Not open for further replies.

morgy

Programmer
Nov 17, 2001
2
KZ
Help! I have a tricky problem. I need to format squares (borders) around my controls in the detail section of my reports. The problem is that some controls can grow (cangrow = true) and what happens is that the border for the growing controls stretch to fit the contents (as one would expect) but none of the others on the same line stretch also. So instead of:

****************************
*fld1 * fld 2 * fld3 *
* * fld 2 cont.* *
****************************

I get:

****************************
*fld1 * fld 2 * fld3 *
******* fld 3 cont.*********
**************
Any ideas???



 
Your &quot;instead&quot; case is not easy to understand depending on the font used by the browser. I think you mean also <fld2 cont.>

So if I correctly undestand your case, my suggestion is not to use the outline of the text box but to use vertical and horizontal lines to draw the same border lines.

As far as I remember from an application I have not presently on-line, it works when you have an horizontal line UNDER your controls that &quot;CanGrow&quot;.
 
Sorry for giving you a false advice, it doesn't work that simple way.

I'm afraid you have to use Line statements in the Print event procedure when ever you can get the actual height of the Detail section at this time...

I'll make some trials and come back to you later but if somebody giver an easy solution 'cause Line is not very easy to tune!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top