|
Re: Canvas.scroll: msg#00204lang.realbasic.beginner
At 7:39 PM +0100 3/26/06, Bernard Sunderland wrote: But I would still like to know why Canvas.scroll doesn't work It does work, it just doesn't do what you think it does. The backdrop of the canvas is just that -- the backdrop, not the content. Canvas.scroll scrolls the content. Your new approach is correct, but remember to also draw the picture in its proper position in the Paint event. The best way to do this is to have a method which draws the picture to a given graphics context. Call this from Paint (passing in g) as well as from your scrollbar ValueChanged events (passing in the canvas's .Graphics property). Best, - Joe -- Joseph J. Strout joe@xxxxxxxxxx _______________________________________________ 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> |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Canvas.scroll: 00204, John Sunderland |
|---|---|
| Next by Date: | Re: Canvas.scroll: 00204, John Sunderland |
| Previous by Thread: | Re: Canvas.scrolli: 00204, Michael Rebar |
| Next by Thread: | Re: Canvas.scroll: 00204, John Sunderland |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |