G
Guest
Hi there,
I have developed a control which can do zoom in and out a design surface
where u can place objects.
Ok then. The problem is that the control has two zoom buttons that have to
be painted always in the same position ,even when we are scrolling the design
surface from one side to another. I have also a border for the control that
has to sorround its displayrectangle.
When I move the srollbars the Paint event is generated and the picture
which was in the display rectangle is scrolled leaving an invalid area. The
problem is that the border and the buttons are scrolled too because they were
painted before on top of the dsign surface and they dont have to because they
must remain in the same place always. I dont know how to manage a separate
layer which includes the border ans these two buttons having also other
layer behind the first one which has to be the scrolled one and which holds
the design surface and its elements
Any idea? thanks
I have developed a control which can do zoom in and out a design surface
where u can place objects.
Ok then. The problem is that the control has two zoom buttons that have to
be painted always in the same position ,even when we are scrolling the design
surface from one side to another. I have also a border for the control that
has to sorround its displayrectangle.
When I move the srollbars the Paint event is generated and the picture
which was in the display rectangle is scrolled leaving an invalid area. The
problem is that the border and the buttons are scrolled too because they were
painted before on top of the dsign surface and they dont have to because they
must remain in the same place always. I dont know how to manage a separate
layer which includes the border ans these two buttons having also other
layer behind the first one which has to be the scrolled one and which holds
the design surface and its elements
Any idea? thanks