L
Lelekács Zoltán
Hi,
I have a user painted backgrounf form.
When form has got a scrollbar I run into trouble with drawing.
I get the ClipRectangle in the EventArgs. It is depends on the graphics
face, not the virtual (I mean that if I have a from with 400px of height and
have a control at 600px and I scroll to the control I will get a
ClipRectangle with Y like 25px, not 575px with 200px height).
Even I cannot ask the virtual clientsize of the form, only the displayable
face through Form.ClientSize. There is a PrefferedSize property, but it
gives the form.Height value, not the ClientHeight... So I have determine the
"border" of the form...
But even complicated with scrollbar...
So the real question is:
Do I miss something or missunderstood with OnBackground paint +
ClipRectangle + Scrollbar.Value and Scrollbar.Maximum (which does NOT gives
the PrefferedSize.Height if it is the VScrolllbar.Maximum property)?
Or what is the nice solution to handle the scrollbar value and draws the
exact face of the background (if the face of the background as big as the
virtual size of the form)?
Thanks.
lelez
I have a user painted backgrounf form.
When form has got a scrollbar I run into trouble with drawing.
I get the ClipRectangle in the EventArgs. It is depends on the graphics
face, not the virtual (I mean that if I have a from with 400px of height and
have a control at 600px and I scroll to the control I will get a
ClipRectangle with Y like 25px, not 575px with 200px height).
Even I cannot ask the virtual clientsize of the form, only the displayable
face through Form.ClientSize. There is a PrefferedSize property, but it
gives the form.Height value, not the ClientHeight... So I have determine the
"border" of the form...
But even complicated with scrollbar...
So the real question is:
Do I miss something or missunderstood with OnBackground paint +
ClipRectangle + Scrollbar.Value and Scrollbar.Maximum (which does NOT gives
the PrefferedSize.Height if it is the VScrolllbar.Maximum property)?
Or what is the nice solution to handle the scrollbar value and draws the
exact face of the background (if the face of the background as big as the
virtual size of the form)?
Thanks.
lelez