On Nov 13, 2006, at 4:05 PM, Jonathon Bevar wrote:
Hello all,
I found some examples of how to scroll a CANVAS using the SCROLL
control that is within just the Main WINDOW. It works great, but I
need to have other things in the Main Window too besides the darn
canvas.
Rectangle = Border for Canvas
Canvas = scrolling field with controls on it, static and the like.
Scrollbar = to scroll up and down to see all the controls
What happens is the Canvas over shoots the Rectangle and looks like
CRAP! I have StaticText fields in the canvas and when you scroll
past the top its like the Canvas is sliding over the Rectangle
mask, what I call it, and casts over the other controls on top of
the Rectangle. this method works great fore pictures but I have NO
pictures in this canvas, its just a tool to use to scroll the
controls is all.
Does any one know how to setup a canvas to be WITHIN the limits of
a Rectangle or whatever control to confine it to a specific height
and width?
I guess I am asking is how to keep the canvas UNDER the rectangle
object instead of showing OVER the rectangle object, or how do I do
this if not with a canvas?
Don't USE a Rectangle control. Instead, draw the BORDER in the
Canvas itself using Graphics.DrawRect in the Canvas.Paint event handler.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>