Page 1 of 1

Adjust text fields depending on each content

Posted: Mon Nov 05, 2007 11:47 am
by Fabio Pagano
Using pre-release build 2007.3.12.0 (17/10/2007) for Vs2005.

The task is apparently simple: in a band (eg. a group band) i have three text fields, with variable content length.

In the first field (from database) i have the definition (eg. "Miss", Mr.", "Dr."), in the second field (from database) i have the name (eg. "Smith") in the third field i have fixed ":".

I need that the second field (name) is in bold, so this is the final result i need:

"Mr. Smith:"
or
"Miss De Florence:"

How can i do this? I have tried using auto width but if the first fields grows in width, the second field doesn't shift to the right.

Note that the container band height may be more than one line: i have tried using dock property for the three fields but the band is high so the fields becomes high too.

Thanks.

Adjust text fields depending on each content

Posted: Tue Nov 06, 2007 3:57 am
by ChristianH
Maybe containers could help.
Place the elements to be docked in a container and use the dock property.

Adjust text fields depending on each content

Posted: Tue Nov 06, 2007 4:27 am
by EDV Gradl
Maybe instead of three textboxes you should you one richtext control, in which you can format each part seperatly.

Marco