Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you connect label to a text box?
Message
 
 
To
20/03/2019 07:19:47
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01667089
Message ID:
01667391
Views:
52
Thank you, John.

>Hi Dmitry, you already have the solution, even if you group labeln with Textboxn it will move different. Adding a "float" line below each Labeln and TextBoxn you are telling to the report that move all the objects below that line and you will have the proper alignment. Also you can hide the line by changing the color to white.
>
>Other solution will be having two textboxes, the textbox that is replacement for label1 you will need to put the title "Label1" then add as many chr(13) (new line) as lines in the TextBox1, the same for label2 and label3, but this is not a good practice.
>
>Hi,
>
>On a report all fields have object position Float. The objects are set in pairs: Label: Text Box.
>Example:
>
>Label1            TextBox1
>Label 2           TextBox2
>Label 3           TextBox3
>
>
>If TextBox1 is longer than would fit on one line, it prints on two lines. The text boxes TextBox2, TextBox3 move down accordingly. But the Label2 and Label3 stay in the same place. It would be nice if I could connect Label2 with TextBox2.
>The only way I see making all objects move down is to have a line object below Label1 and TextBox1. But I was hoping that there is a different solution that does not involve adding another object.
>
>Any suggestions? TIA
>
>UPDATE. I resolved the issue by adding a line after Label1 and TextBox1 and set this line to Print When .F. So, it never prints but it pushes the Label2 down according to the size of the TextBox1
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform