Charles,

Do you have an example then? As I am lost here. I have tried everything you said and others on the forum and still it shows the full canvas size over all of the main window. It wont stay in the borders

Oh I am on RB2005R4 Pro Win/Pro.  I may of forgot to mention that.

Thanks

Jonathon

----- Original Message ----- From: "Charles Yeomans" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Tuesday, November 14, 2006 9:26 AM
Subject: Re: Scrolling Window within its borders?


No; this should work. If you're scrolling the canvas, you need to adjust for that when you draw the rectangle.

Charles Yeomans

On Nov 14, 2006, at 1:38 AM, Jonathon Bevar wrote:

Charles I tried that and no go, it still scrolls the canvas and now the drawrect up and past the rectangle. Now I use the rectangle as a backing of white to show of the canvas. I have only one canvas. Should I have another canvas for the drawrect or what?

Jonathon

----- Original Message ----- From: "Charles Yeomans" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Monday, November 13, 2006 2:11 PM
Subject: Re: Scrolling Window within its borders?



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>


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.4/532 - Release Date: 11/13/2006




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.4/532 - Release Date: 11/13/2006

_______________________________________________
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>

_______________________________________________
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>


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006

_______________________________________________
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>

Reply via email to