Hi,
I have an incidence, I have a datawindow that in the resize event I modify the width of some rectangles to make them the size of the dw (I use them as header and I want them to be always seen the full size of the window), when the window is enlarged, the datawindow works correctly, but once the window starts to be reduced, the scrollbar of the datawindow appears although the internal size of the datawindow is smaller.
Attached is the example code in PB2022 R3, although it occurs in all versions.
This is the original size you see when you open the window, without the scroll bar.
I enlarge the size and it resizes correctly.
Once enlarged, if I reduce the width is when the bottom scrollbar starts to show.
If I move the bar, you can see that the rectangle is the correct size, but the interior of the dw has not been resized.
I've tried to repaint the datawindow with setredraw, groupcalc,... but it doesn't update the size.
I have also tried to modify the HorizontalScrollMaximum, but it doesn't work.
Any suggestions?