ShiftMode - Can't get box to shift right

Stimulsoft Reports.NET discussion
Post Reply
AdrianFS
Posts: 16
Joined: Mon Jul 25, 2011 4:36 pm

ShiftMode - Can't get box to shift right

Post by AdrianFS »

I am evaluating Stimulsoft Reports and I can't get ShiftMode to work correctly.

I created a sample report with two text boxes. The first contains the text "Too big to fit in this space" and is sized to be too small for that text. That text box has AutoWidth=true.

The second text box is immediately to the right of the first box and contains the text "right". This text box has AutoWidth=true and the ShiftMode - Only in Width of Component option checked.

According to the ShiftMode documentation, I expect that the first text box will grow in width and the second text box shifted to the right. However, the first text box is growing correctly in width but the second text box isn't moved at all so that the text overlaps.

How can I set it up so that the second box will shift to the right?

Also, I want to use this feature to have report columns that will grow and shrink based on the data. Will AutoWidth and ShiftMode adjust the entire column or does it affect the controls in a single row?


Thank you very much.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

ShiftMode - Can't get box to shift right

Post by Ivan »

Hello,
AdrianFS wrote:How can I set it up so that the second box will shift to the right?
The ShiftMode property affect only vertical moving of component.
For your task please use the DockStyle property of component: set this property for both component to Left.
Please check the report sample in the attachment.
AdrianFS wrote:Also, I want to use this feature to have report columns that will grow and shrink based on the data. Will AutoWidth and ShiftMode adjust the entire column or does it affect the controls in a single row?
The DockStyle property affect only current row of databand.

Thank you.
Attachments
1190.Report sample.zip
(1.43 KiB) Downloaded 235 times
Post Reply