Page 1 of 1

Identifying Object's Autowidth value

Posted: Fri Jun 13, 2008 2:26 am
by ssdev23
Hi All,
I have a text field (Txtfield1) set on Autowidth = true, i wish to use it's width to identify its neighbor (Txtfield2) text field's Left position.

i.e. Txtfield1.Width = Txtfield2.Left
I've set it on a BeforePrintEvent of the Header that contain the textfield but doesnt work ok.
How I will be able to do it? Your thoughts please..

Thanks in advance!

Identifying Object's Autowidth value

Posted: Fri Jun 13, 2008 4:04 am
by Brendan
Maybe the Dock property of the two text components can help?
If they are both Docked Left and the first one is set to AutoWidth = true then the second one should shift position.
Using the dock property will depend on your report layout though and the Z ordering or the two text components.

Identifying Object's Autowidth value

Posted: Fri Jun 27, 2008 9:59 pm
by ssdev23
Okay Brendan, let me try that one :)
Thanks!